/*
               File: Alumno
        Description: Alumno
             Author: GeneXus C# Generator version 10_1_5-42940
       Generated on: 10/24/2011 10:3:49.85
       Program type: Callable routine
          Main DBMS: sqlserver
*/
using System;
using System.Collections;
using GeneXus.Utils;
using GeneXus.Resources;
using GeneXus.Application;
using GeneXus.Metadata;
using System.Data;
using System.Data.SqlClient;
using GeneXus.Data;
using com.genexus;
using GeneXus.Data.ADO;
using GeneXus.Data.NTier;
using GeneXus.Data.NTier.ADO;
using System.Runtime.Remoting;
using GeneXus.WebControls;
using GeneXus.Http;
using GeneXus.XML;
using GeneXus.Search;
using GeneXus.Encryption;
using GeneXus.Http.Client;
using System.Xml.Serialization;
using System.Data.SqlTypes;
namespace GeneXus.Programs {
   public class alumno : GXDataArea, System.Web.SessionState.IRequiresSessionState
   {
      protected void INITENV( )
      {
         if ( GxWebError != 0 )
         {
            return  ;
         }
      }

      protected void INITTRN( )
      {
         initialize_properties( ) ;
         entryPointCalled = false ;
         gxfirstwebparm = GetNextPar( ) ;
         gxfirstwebparm_bkp = gxfirstwebparm ;
         gxfirstwebparm = DecryptAjaxCall( gxfirstwebparm, "High") ;
         if ( StringUtil.StrCmp(gxfirstwebparm, "dyncall") == 0 )
         {
            setAjaxCallMode();
            if ( ! IsValidAjaxCall( true) )
            {
               GxWebError = 1 ;
               return  ;
            }
            dyncall( GetNextPar( )) ;
            return  ;
         }
         else if ( StringUtil.StrCmp(gxfirstwebparm, "gxajaxEvt") == 0 )
         {
            setAjaxEventMode();
            if ( ! IsValidAjaxCall( true) )
            {
               GxWebError = 1 ;
               return  ;
            }
            gxfirstwebparm = GetNextPar( ) ;
         }
         else if ( StringUtil.StrCmp(gxfirstwebparm, "gxajaxNewRow_"+"Gridalumno_tutorias") == 0 )
         {
            nRC_Gridalumno_tutorias = (short)(NumberUtil.Val( GetNextPar( ), ".")) ;
            nGXsfl_100_idx = (short)(NumberUtil.Val( GetNextPar( ), ".")) ;
            sGXsfl_100_idx = GetNextPar( ) ;
            setAjaxCallMode();
            if ( ! IsValidAjaxCall( true) )
            {
               GxWebError = 1 ;
               return  ;
            }
            gxnrGridalumno_tutorias_newrow( nRC_Gridalumno_tutorias, nGXsfl_100_idx, sGXsfl_100_idx) ;
            return  ;
         }
         else
         {
            if ( ! IsValidAjaxCall( false) )
            {
               GxWebError = 1 ;
               return  ;
            }
            gxfirstwebparm = gxfirstwebparm_bkp ;
         }
         if ( ! entryPointCalled )
         {
            Gx_mode = gxfirstwebparm ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
            if ( StringUtil.StrCmp(gxfirstwebparm, "viewer") != 0 )
            {
               AV7AlumnoId = (short)(NumberUtil.Val( GetNextPar( ), ".")) ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "AV7AlumnoId", StringUtil.LTrim( StringUtil.Str( (decimal)(AV7AlumnoId), 4, 0)));
            }
         }
         Form.Meta.addItem("Generator", "GeneXus C#", 0) ;
         Form.Meta.addItem("Version", "10_1_5-42940", 0) ;
         Form.Meta.addItem("Description", "Alumno", 0) ;
         context.wjLoc = "" ;
         context.nUserReturn = 0 ;
         context.wbHandled = 0 ;
         if ( StringUtil.StrCmp(context.GetRequestMethod( ), "POST") == 0 )
         {
         }
         GX_FocusControl = edtAlumnoNombre_Internalname ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
         wbErr = false ;
         context.SetTheme("Classic");
      }

      public alumno( )
      {
         context = new GxContext(  );
         DataStoreUtil.LoadDataStores( context);
         dsDefault = context.GetDataStore("Default") ;
         IsMain = true;
         context.SetTheme("Classic");
      }

      public alumno( IGxContext context )
      {
         this.context = context;
         IsMain = false;
         dsDefault = context.GetDataStore("Default") ;
      }

      public void release( )
      {
      }

      public void execute( String aP0_Gx_mode ,
                           short aP1_AlumnoId )
      {
         this.Gx_mode = aP0_Gx_mode;
         this.AV7AlumnoId = aP1_AlumnoId;
         executePrivate();
      }

      void executePrivate( )
      {
         isStatic = false;
         webExecute();
      }

      protected override void createObjects( )
      {
      }

      public override void webExecute( )
      {
         if ( initialized == 0 )
         {
            createObjects();
            initialize();
         }
         INITENV( ) ;
         INITTRN( ) ;
         if ( ( GxWebError == 0 ) && ! isAjaxCallMode( ) )
         {
            MasterPageObj = (GXMasterPage) ClassLoader.GetInstance("appmasterpage", "GeneXus.Programs.appmasterpage", new Object[] {new GxContext( context.handle, context.DataStores, context.HttpContext)});
            MasterPageObj.setDataArea(this,false);
            MasterPageObj.webExecute();
            if ( context.isAjaxRequest( ) )
            {
               enableOutput();
               if ( ! context.isAjaxRequest( ) )
               {
                  context.GX_webresponse.AppendHeader("Cache-Control", "max-age=0");
               }
               if ( String.IsNullOrEmpty(StringUtil.RTrim( context.wjLoc)) )
               {
                  context.GX_webresponse.AddString((String)(context.getJSONResponse( )));
               }
               else
               {
                  context.Redirect( context.wjLoc );
                  context.DispatchAjaxCommands();
               }
            }
         }
         this.cleanup();
      }

      protected void Draw( )
      {
         if ( context.isAjaxRequest( ) )
         {
            disableOutput();
         }
         if ( ! GxWebStd.gx_redirect( context) )
         {
            disable_std_buttons( ) ;
            enableDisable( ) ;
            set_caption( ) ;
            /* Form start */
            wb_table1_2_011( true) ;
         }
         return  ;
      }

      protected void wb_table1_2_011e( bool wbgen )
      {
         if ( wbgen )
         {
         }
         /* Execute Exit event if defined. */
      }

      protected void wb_table1_2_011( bool wbgen )
      {
         if ( wbgen )
         {
            /* Table start */
            sStyleString = "" ;
            GxWebStd.gx_table_start( context, tblTablemain_Internalname, tblTablemain_Internalname, "", "TableBorder100x100", 0, "", "", 1, 2, sStyleString, "", 0);
            context.WriteHtmlText( "<tbody>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td>") ;
            wb_table2_5_011( true) ;
         }
         return  ;
      }

      protected void wb_table2_5_011e( bool wbgen )
      {
         if ( wbgen )
         {
            /* Control Group */
            ClassString = "Group" ;
            StyleString = "" ;
            context.WriteHtmlText( "<fieldset id=\""+grpGroupdata_Internalname+"\""+" style=\"-moz-border-radius:3pt;\""+" class=\""+ClassString+"\">") ;
            context.WriteHtmlText( "<legend class=\""+ClassString+"Title"+"\">"+"Alumno"+"</legend>") ;
            wb_table3_27_011( true) ;
         }
         return  ;
      }

      protected void wb_table3_27_011e( bool wbgen )
      {
         if ( wbgen )
         {
            context.WriteHtmlText( "</fieldset>") ;
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "</tbody>") ;
            /* End of table */
            context.WriteHtmlText( "</table>") ;
            wb_table1_2_011e( true) ;
         }
         else
         {
            wb_table1_2_011e( false) ;
         }
      }

      protected void wb_table3_27_011( bool wbgen )
      {
         if ( wbgen )
         {
            /* Table start */
            sStyleString = "" ;
            GxWebStd.gx_table_start( context, tblTable1_Internalname, tblTable1_Internalname, "", "Table", 0, "", "", 1, 2, sStyleString, "", 0);
            context.WriteHtmlText( "<tbody>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td>") ;
            ClassString = "ErrorViewer" ;
            StyleString = "" ;
            GxWebStd.gx_msg_list( context, "", context.GX_msglist.DisplayMode, StyleString, ClassString, "", "false");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td>") ;
            wb_table4_33_011( true) ;
         }
         return  ;
      }

      protected void wb_table4_33_011e( bool wbgen )
      {
         if ( wbgen )
         {
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td>") ;
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 106,'',false,'',0)\"" ;
            ClassString = "BtnEnter" ;
            StyleString = "" ;
            GxWebStd.gx_button_ctrl( context, context.GetButtonType( ), bttBtn_enter_Internalname, "Confirmar", "Confirmar", "", StyleString, ClassString, bttBtn_enter_Visible, 1, "rounded", 5, bttBtn_enter_Jsonclick, "EENTER.", TempTags, "", "", "HLP_Alumno.htm");
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 107,'',false,'',0)\"" ;
            ClassString = "BtnCancel" ;
            StyleString = "" ;
            GxWebStd.gx_button_ctrl( context, context.GetButtonType( ), bttBtn_cancel_Internalname, "Cancelar", "Cancelar", "", StyleString, ClassString, bttBtn_cancel_Visible, 1, "rounded", 1, bttBtn_cancel_Jsonclick, "ECANCEL.", TempTags, "", "", "HLP_Alumno.htm");
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 108,'',false,'',0)\"" ;
            ClassString = "BtnDelete" ;
            StyleString = "" ;
            GxWebStd.gx_button_ctrl( context, context.GetButtonType( ), bttBtn_delete_Internalname, "Eliminar", "Eliminar", "", StyleString, ClassString, bttBtn_delete_Visible, 0, "rounded", 5, bttBtn_delete_Jsonclick, "EDELETE.", TempTags, "", "", "HLP_Alumno.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "</tbody>") ;
            /* End of table */
            context.WriteHtmlText( "</table>") ;
            wb_table3_27_011e( true) ;
         }
         else
         {
            wb_table3_27_011e( false) ;
         }
      }

      protected void wb_table4_33_011( bool wbgen )
      {
         if ( wbgen )
         {
            /* Table start */
            sStyleString = "" ;
            GxWebStd.gx_table_start( context, tblTable2_Internalname, tblTable2_Internalname, "", "Table", 0, "", "", 1, 2, sStyleString, "", 0);
            context.WriteHtmlText( "<tbody>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td valign=\"top\" class=\"td5\" >") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblockalumnoid_Internalname, 1, 1, 0, "Id", "", "", "", 0, lblTextblockalumnoid_Jsonclick, "", StyleString, ClassString, "HLP_Alumno.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            /* Single line edit */
            ClassString = "Attribute" ;
            StyleString = "" ;
            GxWebStd.gx_single_line_edit( context, edtAlumnoId_Internalname, StringUtil.LTrim( StringUtil.NToC( (decimal)(A1AlumnoId), 4, 0, ",", "")), "", 4, "chr", 1, "row", 4, 1, edtAlumnoId_Enabled, 0, 0, 0, "", "", StyleString, ClassString, "", context.localUtil.Format( (decimal)(A1AlumnoId), "ZZZ9"), "", 0, edtAlumnoId_Jsonclick, "", 0, 1, -1, true, "right", "HLP_Alumno.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td valign=\"top\" class=\"td5\" >") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblockalumnonombre_Internalname, 1, 1, 0, "Nombre", "", "", "", 0, lblTextblockalumnonombre_Jsonclick, "", StyleString, ClassString, "HLP_Alumno.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            /* Single line edit */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 43,'',false,'',0)\"" ;
            ClassString = "Attribute" ;
            StyleString = "" ;
            GxWebStd.gx_single_line_edit( context, edtAlumnoNombre_Internalname, StringUtil.RTrim( A2AlumnoNombre), "", 80, "chr", 1, "row", 100, 1, edtAlumnoNombre_Enabled, 0, 0, 0, "", "", StyleString, ClassString, "", StringUtil.RTrim( context.localUtil.Format( A2AlumnoNombre, "")), TempTags+" onchange=\"gx.evt.onchange(this)\" "+" onblur=\""+""+";gx.evt.onblur(43);\"", 0, edtAlumnoNombre_Jsonclick, "", 0, 1, -1, true, "left", "HLP_Alumno.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td valign=\"top\" class=\"td5\" >") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblockalumnoapellidos_Internalname, 1, 1, 0, "Apellidos", "", "", "", 0, lblTextblockalumnoapellidos_Jsonclick, "", StyleString, ClassString, "HLP_Alumno.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            /* Single line edit */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 48,'',false,'',0)\"" ;
            ClassString = "Attribute" ;
            StyleString = "" ;
            GxWebStd.gx_single_line_edit( context, edtAlumnoApellidos_Internalname, StringUtil.RTrim( A3AlumnoApellidos), "", 80, "chr", 1, "row", 120, 1, edtAlumnoApellidos_Enabled, 0, 0, 0, "", "", StyleString, ClassString, "", StringUtil.RTrim( context.localUtil.Format( A3AlumnoApellidos, "")), TempTags+" onchange=\"gx.evt.onchange(this)\" "+" onblur=\""+""+";gx.evt.onblur(48);\"", 0, edtAlumnoApellidos_Jsonclick, "", 0, 1, -1, true, "left", "HLP_Alumno.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td valign=\"top\" class=\"td5\" >") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblockalumnonombrecompleto_Internalname, 1, 1, 0, "Nombre Completo", "", "", "", 0, lblTextblockalumnonombrecompleto_Jsonclick, "", StyleString, ClassString, "HLP_Alumno.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            /* Multiple line edit */
            ClassString = "Attribute" ;
            StyleString = "" ;
            ClassString = "Attribute" ;
            StyleString = "" ;
            GxWebStd.gx_html_textarea( context, edtAlumnoNombreCompleto_Internalname, StringUtil.RTrim( A4AlumnoNombreCompleto), 1, edtAlumnoNombreCompleto_Enabled, 0, 80, "chr", 3, "row", StyleString, ClassString, "220", "", -1, 0, "", "", true, "HLP_Alumno.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td valign=\"top\" class=\"td5\" >") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblockalumnonif_Internalname, 1, 1, 0, "NIF", "", "", "", 0, lblTextblockalumnonif_Jsonclick, "", StyleString, ClassString, "HLP_Alumno.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            /* Single line edit */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 58,'',false,'',0)\"" ;
            ClassString = "Attribute" ;
            StyleString = "" ;
            GxWebStd.gx_single_line_edit( context, edtAlumnoNIF_Internalname, StringUtil.RTrim( A5AlumnoNIF), "", 9, "chr", 1, "row", 9, 1, edtAlumnoNIF_Enabled, 0, 0, 0, "", "", StyleString, ClassString, "", StringUtil.RTrim( context.localUtil.Format( A5AlumnoNIF, "")), TempTags+" onchange=\"gx.evt.onchange(this)\" "+" onblur=\""+""+";gx.evt.onblur(58);\"", 0, edtAlumnoNIF_Jsonclick, "", 0, 1, -1, true, "left", "HLP_Alumno.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td valign=\"top\" class=\"td5\" >") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblockalumnofechanacimiento_Internalname, 1, 1, 0, "Fecha Nacimiento", "", "", "", 0, lblTextblockalumnofechanacimiento_Jsonclick, "", StyleString, ClassString, "HLP_Alumno.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            /* Single line edit */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 63,'',false,'',0)\"" ;
            ClassString = "Attribute" ;
            StyleString = "" ;
            context.WriteHtmlText( "<div id=\""+edtAlumnoFechaNacimiento_Internalname+"_dp_container\" class=\"dp_container\" style=\"white-space:nowrap;display:inline;\">") ;
            GxWebStd.gx_single_line_edit( context, edtAlumnoFechaNacimiento_Internalname, context.localUtil.Format(A6AlumnoFechaNacimiento, "99/99/99"), "", 8, "chr", 1, "row", 8, 1, edtAlumnoFechaNacimiento_Enabled, 0, 0, 0, "", "", StyleString, ClassString, "", context.localUtil.Format( A6AlumnoFechaNacimiento, "99/99/99"), TempTags+" onchange=\"gx.evt.onchange(this)\" "+" onblur=\""+"gx.date.valid_date(this, 8,'DMY',0,24,'spa',false,0);"+";gx.evt.onblur(63);\"", 0, edtAlumnoFechaNacimiento_Jsonclick, "", 0, 1, -1, true, "right", "HLP_Alumno.htm");
            GxWebStd.gx_bitmap( context, edtAlumnoFechaNacimiento_Internalname+"_dp_trigger", "", "calendar-img.gif", "", ((1==0)||(edtAlumnoFechaNacimiento_Enabled==0) ? 0 : 1), 0, "Date selector", "Date selector", 0, 1, 0, "", 0, "", 0, 0, "", "", 0, "", "", "cursor: pointer;vertical-align:text-bottom", "", "", "", "", "", "HLP_Alumno.htm");
            context.WriteHtmlTextNl( "</div>") ;
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td valign=\"top\" class=\"td5\" >") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblockalumnoemail_Internalname, 1, 1, 0, "Email", "", "", "", 0, lblTextblockalumnoemail_Jsonclick, "", StyleString, ClassString, "HLP_Alumno.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            /* Single line edit */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 68,'',false,'',0)\"" ;
            ClassString = "Attribute" ;
            StyleString = "" ;
            GxWebStd.gx_single_line_edit( context, edtAlumnoEmail_Internalname, StringUtil.RTrim( A30AlumnoEmail), "", 75, "chr", 1, "row", 75, 1, edtAlumnoEmail_Enabled, 0, 0, 0, "", "", StyleString, ClassString, "", StringUtil.RTrim( context.localUtil.Format( A30AlumnoEmail, "")), TempTags+" onchange=\"gx.evt.onchange(this)\" "+" onblur=\""+""+";gx.evt.onblur(68);\"", 0, edtAlumnoEmail_Jsonclick, "", 0, 1, -1, true, "left", "HLP_Alumno.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td valign=\"top\" class=\"td5\" >") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblockalumnoweb_Internalname, 1, 1, 0, "Web", "", "", "", 0, lblTextblockalumnoweb_Jsonclick, "", StyleString, ClassString, "HLP_Alumno.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            /* Single line edit */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 73,'',false,'',0)\"" ;
            ClassString = "Attribute" ;
            StyleString = "" ;
            GxWebStd.gx_single_line_edit( context, edtAlumnoWeb_Internalname, StringUtil.RTrim( A31AlumnoWeb), "", 50, "chr", 1, "row", 50, 1, edtAlumnoWeb_Enabled, 0, 0, 0, "", "", StyleString, ClassString, "", StringUtil.RTrim( context.localUtil.Format( A31AlumnoWeb, "")), TempTags+" onchange=\"gx.evt.onchange(this)\" "+" onblur=\""+""+";gx.evt.onblur(73);\"", 0, edtAlumnoWeb_Jsonclick, "", 0, 1, -1, true, "left", "HLP_Alumno.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td valign=\"top\" class=\"td5\" >") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblockalumnotelefono_Internalname, 1, 1, 0, "Telefono", "", "", "", 0, lblTextblockalumnotelefono_Jsonclick, "", StyleString, ClassString, "HLP_Alumno.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            /* Single line edit */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 78,'',false,'',0)\"" ;
            ClassString = "Attribute" ;
            StyleString = "" ;
            GxWebStd.gx_single_line_edit( context, edtAlumnoTelefono_Internalname, StringUtil.RTrim( A34AlumnoTelefono), "", 15, "chr", 1, "row", 15, 1, edtAlumnoTelefono_Enabled, 0, 0, 0, "", "", StyleString, ClassString, "", StringUtil.RTrim( context.localUtil.Format( A34AlumnoTelefono, "")), TempTags+" onchange=\"gx.evt.onchange(this)\" "+" onblur=\""+""+";gx.evt.onblur(78);\"", 0, edtAlumnoTelefono_Jsonclick, "", 0, 1, -1, true, "left", "HLP_Alumno.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td valign=\"top\" class=\"td5\" >") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblockalumnonombrepadre_Internalname, 1, 1, 0, "Nombre Padre", "", "", "", 0, lblTextblockalumnonombrepadre_Jsonclick, "", StyleString, ClassString, "HLP_Alumno.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            /* Multiple line edit */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 83,'',false,'',0)\"" ;
            ClassString = "Attribute" ;
            StyleString = "" ;
            ClassString = "Attribute" ;
            StyleString = "" ;
            GxWebStd.gx_html_textarea( context, edtAlumnoNombrePadre_Internalname, StringUtil.RTrim( A9AlumnoNombrePadre), 1, edtAlumnoNombrePadre_Enabled, 0, 80, "chr", 3, "row", StyleString, ClassString, "200", TempTags+" onchange=\"gx.evt.onchange(this)\" "+" onblur=\""+""+";gx.evt.onblur(83);\"", -1, 0, "", "", true, "HLP_Alumno.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td valign=\"top\" class=\"td5\" >") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblockalumnonombremadre_Internalname, 1, 1, 0, "Nombre Madre", "", "", "", 0, lblTextblockalumnonombremadre_Jsonclick, "", StyleString, ClassString, "HLP_Alumno.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            /* Multiple line edit */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 88,'',false,'',0)\"" ;
            ClassString = "Attribute" ;
            StyleString = "" ;
            ClassString = "Attribute" ;
            StyleString = "" ;
            GxWebStd.gx_html_textarea( context, edtAlumnoNombreMadre_Internalname, StringUtil.RTrim( A10AlumnoNombreMadre), 1, edtAlumnoNombreMadre_Enabled, 0, 80, "chr", 3, "row", StyleString, ClassString, "200", TempTags+" onchange=\"gx.evt.onchange(this)\" "+" onblur=\""+""+";gx.evt.onblur(88);\"", -1, 0, "", "", true, "HLP_Alumno.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td valign=\"top\" class=\"td5\" >") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblockalumnoobservaciones_Internalname, 1, 1, 0, "Observaciones", "", "", "", 0, lblTextblockalumnoobservaciones_Jsonclick, "", StyleString, ClassString, "HLP_Alumno.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            /* Multiple line edit */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 93,'',false,'',0)\"" ;
            ClassString = "Attribute" ;
            StyleString = "" ;
            ClassString = "Attribute" ;
            StyleString = "" ;
            GxWebStd.gx_html_textarea( context, edtAlumnoObservaciones_Internalname, StringUtil.RTrim( A11AlumnoObservaciones), 1, edtAlumnoObservaciones_Enabled, 0, 80, "chr", 9, "row", StyleString, ClassString, "650", TempTags+" onchange=\"gx.evt.onchange(this)\" "+" onblur=\""+""+";gx.evt.onblur(93);\"", -1, 0, "", "", true, "HLP_Alumno.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td colspan=\"2\" >") ;
            context.WriteHtmlText( "<br>") ;
            wb_table5_96_011( true) ;
         }
         return  ;
      }

      protected void wb_table5_96_011e( bool wbgen )
      {
         if ( wbgen )
         {
            context.WriteHtmlText( "<hr class=\"HRDefault\">") ;
            /*  Grid Control  */
            Gridalumno_tutoriasContainer.AddObjectProperty("GridName", "Gridalumno_tutorias");
            Gridalumno_tutoriasContainer.AddObjectProperty("Class", "Grid");
            Gridalumno_tutoriasContainer.AddObjectProperty("Cellpadding", StringUtil.LTrim( StringUtil.NToC( (decimal)(1), 4, 0, ".", "")));
            Gridalumno_tutoriasContainer.AddObjectProperty("Cellspacing", StringUtil.LTrim( StringUtil.NToC( (decimal)(2), 4, 0, ".", "")));
            Gridalumno_tutoriasContainer.AddObjectProperty("Backcolorstyle", StringUtil.LTrim( StringUtil.NToC( (decimal)(subGridalumno_tutorias_Backcolorstyle), 1, 0, ".", "")));
            Gridalumno_tutoriasContainer.AddObjectProperty("CmpContext", "");
            Gridalumno_tutoriasContainer.AddObjectProperty("InMasterPage", "false");
            Gridalumno_tutoriasColumn = GXWebColumn.GetNew(isAjaxCallMode( )) ;
            Gridalumno_tutoriasColumn.AddObjectProperty("Value", context.localUtil.Format(A12AlumnoTutoriasFecha, "99/99/99"));
            Gridalumno_tutoriasColumn.AddObjectProperty("Enabled", StringUtil.LTrim( StringUtil.NToC( (decimal)(edtAlumnoTutoriasFecha_Enabled), 5, 0, ".", "")));
            Gridalumno_tutoriasContainer.AddColumnProperties(Gridalumno_tutoriasColumn);
            Gridalumno_tutoriasColumn = GXWebColumn.GetNew(isAjaxCallMode( )) ;
            Gridalumno_tutoriasColumn.AddObjectProperty("Value", StringUtil.RTrim( A13AlumnoTutoriasMotivo));
            Gridalumno_tutoriasColumn.AddObjectProperty("Enabled", StringUtil.LTrim( StringUtil.NToC( (decimal)(edtAlumnoTutoriasMotivo_Enabled), 5, 0, ".", "")));
            Gridalumno_tutoriasContainer.AddColumnProperties(Gridalumno_tutoriasColumn);
            Gridalumno_tutoriasColumn = GXWebColumn.GetNew(isAjaxCallMode( )) ;
            Gridalumno_tutoriasColumn.AddObjectProperty("Value", StringUtil.RTrim( A14AlumnoTutoriasDetalles));
            Gridalumno_tutoriasColumn.AddObjectProperty("Enabled", StringUtil.LTrim( StringUtil.NToC( (decimal)(edtAlumnoTutoriasDetalles_Enabled), 5, 0, ".", "")));
            Gridalumno_tutoriasContainer.AddColumnProperties(Gridalumno_tutoriasColumn);
            Gridalumno_tutoriasContainer.AddObjectProperty("Allowselection", "false");
            Gridalumno_tutoriasContainer.AddObjectProperty("Allowcollapsing", "false");
            Gridalumno_tutoriasContainer.AddObjectProperty("Collapsed", StringUtil.LTrim( StringUtil.NToC( (decimal)(subGridalumno_tutorias_Collapsed), 9, 0, ".", "")));
            nGXsfl_100_idx = 0 ;
            if ( ( nKeyPressed == 1 ) && ( AnyError == 0 ) )
            {
               /* Enter key processing. */
               nBlankRcdCount2 = 5 ;
               if ( StringUtil.StrCmp(Gx_mode, "INS") != 0 )
               {
                  /* Display confirmed (stored) records */
                  nRcdExists_2 = 1 ;
                  ScanStart012( ) ;
                  while ( RcdFound2 != 0 )
                  {
                     init_level_properties2( ) ;
                     getByPrimaryKey012( ) ;
                     AddRow012( ) ;
                     ScanNext012( ) ;
                  }
                  ScanEnd012( ) ;
                  nBlankRcdCount2 = 5 ;
               }
            }
            else if ( ( nKeyPressed == 3 ) || ( nKeyPressed == 4 ) || ( ( nKeyPressed == 1 ) && ( AnyError != 0 ) ) )
            {
               /* Button check  or addlines. */
               standaloneNotModal012( ) ;
               standaloneModal012( ) ;
               sMode2 = Gx_mode ;
               while ( nGXsfl_100_idx < nRC_Gridalumno_tutorias )
               {
                  ReadRow012( ) ;
                  edtAlumnoTutoriasFecha_Enabled = (int)(context.localUtil.CToN( cgiGet( "ALUMNOTUTORIASFECHA_"+sGXsfl_100_idx+"Enabled"), ",", ".")) ;
                  context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtAlumnoTutoriasFecha_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtAlumnoTutoriasFecha_Enabled), 5, 0)));
                  edtAlumnoTutoriasMotivo_Enabled = (int)(context.localUtil.CToN( cgiGet( "ALUMNOTUTORIASMOTIVO_"+sGXsfl_100_idx+"Enabled"), ",", ".")) ;
                  context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtAlumnoTutoriasMotivo_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtAlumnoTutoriasMotivo_Enabled), 5, 0)));
                  edtAlumnoTutoriasDetalles_Enabled = (int)(context.localUtil.CToN( cgiGet( "ALUMNOTUTORIASDETALLES_"+sGXsfl_100_idx+"Enabled"), ",", ".")) ;
                  context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtAlumnoTutoriasDetalles_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtAlumnoTutoriasDetalles_Enabled), 5, 0)));
                  if ( ( nRcdExists_2 == 0 ) && ( StringUtil.StrCmp(Gx_mode, "INS") != 0 ) )
                  {
                     Gx_mode = "INS" ;
                     context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
                     standaloneModal012( ) ;
                  }
                  SendRow012( ) ;
               }
               Gx_mode = sMode2 ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
            }
            else
            {
               /* Get or get-alike key processing. */
               nBlankRcdCount2 = 5 ;
               nRcdExists_2 = 1 ;
               ScanStart012( ) ;
               while ( RcdFound2 != 0 )
               {
                  init_level_properties2( ) ;
                  getByPrimaryKey012( ) ;
                  standaloneNotModal012( ) ;
                  standaloneModal012( ) ;
                  AddRow012( ) ;
                  ScanNext012( ) ;
               }
               ScanEnd012( ) ;
            }
            /* Initialize fields for 'new' records and send them. */
            if ( StringUtil.StrCmp(Gx_mode, "DSP") != 0 )
            {
               sMode2 = Gx_mode ;
               Gx_mode = "INS" ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
               InitAll012( ) ;
               init_level_properties2( ) ;
               standaloneNotModal012( ) ;
               standaloneModal012( ) ;
               nRcdExists_2 = 0 ;
               nIsMod_2 = 0 ;
               nBlankRcdCount2 = (short)(nBlankRcdUsr2+nBlankRcdCount2) ;
               fRowAdded = 0 ;
               while ( nBlankRcdCount2 > 0 )
               {
                  AddRow012( ) ;
                  if ( ( nKeyPressed == 4 ) && ( fRowAdded == 0 ) )
                  {
                     fRowAdded = 1 ;
                     GX_FocusControl = edtAlumnoTutoriasFecha_Internalname ;
                     context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
                  }
                  nBlankRcdCount2 = (short)(nBlankRcdCount2-1) ;
               }
               Gx_mode = sMode2 ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
            }
            sStyleString = " style=\"display:none;\"" ;
            sStyleString = "" ;
            context.WriteHtmlText( "<div id=\""+"Gridalumno_tutoriasContainer"+"Div\" "+sStyleString+">"+"</div>") ;
            context.httpAjaxContext.ajax_rsp_assign_grid("_"+"Gridalumno_tutorias", (Object)(Gridalumno_tutoriasContainer));
            GxWebStd.gx_hidden_field( context, "Gridalumno_tutoriasContainerData", Gridalumno_tutoriasContainer.ToJavascriptSource());
            if ( context.isAjaxRequest( ) )
            {
               GxWebStd.gx_hidden_field( context, "Gridalumno_tutoriasContainerData"+"V", Gridalumno_tutoriasContainer.GridValuesHidden());
            }
            else
            {
               context.WriteHtmlText( "<input type=\"hidden\" "+"name=\""+"Gridalumno_tutoriasContainerData"+"V"+"\" value='"+Gridalumno_tutoriasContainer.GridValuesHidden()+"'>") ;
            }
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "</tbody>") ;
            /* End of table */
            context.WriteHtmlText( "</table>") ;
            wb_table4_33_011e( true) ;
         }
         else
         {
            wb_table4_33_011e( false) ;
         }
      }

      protected void wb_table5_96_011( bool wbgen )
      {
         if ( wbgen )
         {
            /* Table start */
            sStyleString = "" ;
            GxWebStd.gx_table_start( context, tblTable3_Internalname, tblTable3_Internalname, "", "Table95", 0, "", "", 1, 2, sStyleString, "", 0);
            context.WriteHtmlText( "<tbody>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td class=\"SubTitle\" >") ;
            /* Text block */
            ClassString = "" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTitletutorias_Internalname, 1, 1, 0, "Tutorias", "", "", "", 0, lblTitletutorias_Jsonclick, "", StyleString, ClassString, "HLP_Alumno.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "</tbody>") ;
            /* End of table */
            context.WriteHtmlText( "</table>") ;
            wb_table5_96_011e( true) ;
         }
         else
         {
            wb_table5_96_011e( false) ;
         }
      }

      protected void wb_table2_5_011( bool wbgen )
      {
         if ( wbgen )
         {
            /* Table start */
            sStyleString = "" ;
            GxWebStd.gx_table_start( context, tblTabletoolbar_Internalname, tblTabletoolbar_Internalname, "", "ViewTable", 0, "", "", 1, 2, sStyleString, "", 0);
            context.WriteHtmlText( "<tbody>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td>") ;
            context.WriteHtmlText( "<div style=\"WHITE-SPACE: nowrap\" class=\"ToolbarMain\">") ;
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 8,'',false,'',0)\"" ;
            ClassString = "ImageHandCenter" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_first_Internalname, "", context.GetImagePath( "b9e06284-17ac-4c88-8937-5dbd84ad5d80", "", "Classic"), "Classic", imgBtn_first_Visible, 1, "", "Primero", 0, 0, 0, "", 0, "", 0, 0, "", "", 5, imgBtn_first_Jsonclick, "EFIRST.", StyleString, ClassString, "", ""+TempTags, "", "", "HLP_Alumno.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 9,'',false,'',0)\"" ;
            ClassString = "ImageTop" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_first_separator_Internalname, "", context.GetImagePath( "ea7811ba-4fa2-42da-8591-e6cb10669f1f", "", "Classic"), "Classic", imgBtn_first_separator_Visible, 1, "", "", 0, 0, 0, "", 0, "", 0, 0, "", "", 5, imgBtn_first_separator_Jsonclick, "EFIRST.", StyleString, ClassString, "", ""+TempTags, "", "", "HLP_Alumno.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 10,'',false,'',0)\"" ;
            ClassString = "ImageHandCenter" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_previous_Internalname, "", context.GetImagePath( "7d212604-db7b-4785-9c0d-5faffe71aa33", "", "Classic"), "Classic", imgBtn_previous_Visible, 1, "", "Anterior", 0, 0, 0, "", 0, "", 0, 0, "", "", 5, imgBtn_previous_Jsonclick, "EPREVIOUS.", StyleString, ClassString, "", ""+TempTags, "", "", "HLP_Alumno.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 11,'',false,'',0)\"" ;
            ClassString = "ImageTop" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_previous_separator_Internalname, "", context.GetImagePath( "ea7811ba-4fa2-42da-8591-e6cb10669f1f", "", "Classic"), "Classic", imgBtn_previous_separator_Visible, 1, "", "", 0, 0, 0, "", 0, "", 0, 0, "", "", 5, imgBtn_previous_separator_Jsonclick, "EPREVIOUS.", StyleString, ClassString, "", ""+TempTags, "", "", "HLP_Alumno.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 12,'',false,'',0)\"" ;
            ClassString = "ImageHandCenter" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_next_Internalname, "", context.GetImagePath( "1ae947cf-1354-41a9-8d59-d91daebf554f", "", "Classic"), "Classic", imgBtn_next_Visible, 1, "", "Siguiente", 0, 0, 0, "", 0, "", 0, 0, "", "", 5, imgBtn_next_Jsonclick, "ENEXT.", StyleString, ClassString, "", ""+TempTags, "", "", "HLP_Alumno.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 13,'',false,'',0)\"" ;
            ClassString = "ImageTop" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_next_separator_Internalname, "", context.GetImagePath( "ea7811ba-4fa2-42da-8591-e6cb10669f1f", "", "Classic"), "Classic", imgBtn_next_separator_Visible, 1, "", "", 0, 0, 0, "", 0, "", 0, 0, "", "", 5, imgBtn_next_separator_Jsonclick, "ENEXT.", StyleString, ClassString, "", ""+TempTags, "", "", "HLP_Alumno.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 14,'',false,'',0)\"" ;
            ClassString = "ImageHandCenter" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_last_Internalname, "", context.GetImagePath( "29211874-e613-48e5-9011-8017d984217e", "", "Classic"), "Classic", imgBtn_last_Visible, 1, "", "Ultimo", 0, 0, 0, "", 0, "", 0, 0, "", "", 5, imgBtn_last_Jsonclick, "ELAST.", StyleString, ClassString, "", ""+TempTags, "", "", "HLP_Alumno.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 15,'',false,'',0)\"" ;
            ClassString = "ImageTop" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_last_separator_Internalname, "", context.GetImagePath( "ea7811ba-4fa2-42da-8591-e6cb10669f1f", "", "Classic"), "Classic", imgBtn_last_separator_Visible, 1, "", "", 0, 0, 0, "", 0, "", 0, 0, "", "", 5, imgBtn_last_separator_Jsonclick, "ELAST.", StyleString, ClassString, "", ""+TempTags, "", "", "HLP_Alumno.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 16,'',false,'',0)\"" ;
            ClassString = "ImageHandCenter" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_select_Internalname, "", context.GetImagePath( "1ca03f75-9947-4d2c-90a4-e8ab9c5cedea", "", "Classic"), "Classic", imgBtn_select_Visible, 1, "", "Seleccionar", 0, 0, 0, "", 0, "", 0, 0, "", "", 5, imgBtn_select_Jsonclick, "ESELECT.", StyleString, ClassString, "", ""+TempTags, "", "", "HLP_Alumno.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 17,'',false,'',0)\"" ;
            ClassString = "ImageTop" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_select_separator_Internalname, "", context.GetImagePath( "ea7811ba-4fa2-42da-8591-e6cb10669f1f", "", "Classic"), "Classic", imgBtn_select_separator_Visible, 1, "", "", 0, 0, 0, "", 0, "", 0, 0, "", "", 5, imgBtn_select_separator_Jsonclick, "ESELECT.", StyleString, ClassString, "", ""+TempTags, "", "", "HLP_Alumno.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 18,'',false,'',0)\"" ;
            ClassString = "ImageHandCenter" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_enter2_Internalname, "", context.GetImagePath( "2061cf2c-bd33-4433-a13e-34af954142e9", "", "Classic"), "Classic", imgBtn_enter2_Visible, imgBtn_enter2_Enabled, "", "Confirmar", 0, 0, 0, "", 0, "", 0, 0, "", "", 5, imgBtn_enter2_Jsonclick, "EENTER.", StyleString, ClassString, "", ""+TempTags, "", "", "HLP_Alumno.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 19,'',false,'',0)\"" ;
            ClassString = "ImageTop" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_enter2_separator_Internalname, "", context.GetImagePath( "ea7811ba-4fa2-42da-8591-e6cb10669f1f", "", "Classic"), "Classic", imgBtn_enter2_separator_Visible, 1, "", "", 0, 0, 0, "", 0, "", 0, 0, "", "", 5, imgBtn_enter2_separator_Jsonclick, "EENTER.", StyleString, ClassString, "", ""+TempTags, "", "", "HLP_Alumno.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 20,'',false,'',0)\"" ;
            ClassString = "ImageHandCenter" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_cancel2_Internalname, "", context.GetImagePath( "0e94ced8-bc34-47ff-9a53-bc683736a686", "", "Classic"), "Classic", imgBtn_cancel2_Visible, 1, "", "Cancelar", 0, 0, 0, "", 0, "", 0, 0, "", "", 1, imgBtn_cancel2_Jsonclick, "ECANCEL.", StyleString, ClassString, "", ""+TempTags, "", "", "HLP_Alumno.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 21,'',false,'',0)\"" ;
            ClassString = "ImageTop" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_cancel2_separator_Internalname, "", context.GetImagePath( "ea7811ba-4fa2-42da-8591-e6cb10669f1f", "", "Classic"), "Classic", imgBtn_cancel2_separator_Visible, 1, "", "", 0, 0, 0, "", 0, "", 0, 0, "", "", 1, imgBtn_cancel2_separator_Jsonclick, "ECANCEL.", StyleString, ClassString, "", ""+TempTags, "", "", "HLP_Alumno.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 22,'',false,'',0)\"" ;
            ClassString = "ImageHandCenter" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_delete2_Internalname, "", context.GetImagePath( "7695fe89-52c9-4b7e-871e-0e11548f823e", "", "Classic"), "Classic", imgBtn_delete2_Visible, imgBtn_delete2_Enabled, "", "Eliminar", 0, 0, 0, "", 0, "", 0, 0, "", "", 5, imgBtn_delete2_Jsonclick, "EDELETE.", StyleString, ClassString, "", ""+TempTags, "", "", "HLP_Alumno.htm");
            /* Active images/pictures */
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 23,'',false,'',0)\"" ;
            ClassString = "ImageTop" ;
            StyleString = "" ;
            GxWebStd.gx_bitmap( context, imgBtn_delete2_separator_Internalname, "", context.GetImagePath( "ea7811ba-4fa2-42da-8591-e6cb10669f1f", "", "Classic"), "Classic", imgBtn_delete2_separator_Visible, 1, "", "", 0, 0, 0, "", 0, "", 0, 0, "", "", 5, imgBtn_delete2_separator_Jsonclick, "EDELETE.", StyleString, ClassString, "", ""+TempTags, "", "", "HLP_Alumno.htm");
            context.WriteHtmlText( "</div>") ;
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td>") ;
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "</tbody>") ;
            /* End of table */
            context.WriteHtmlText( "</table>") ;
            wb_table2_5_011e( true) ;
         }
         else
         {
            wb_table2_5_011e( false) ;
         }
      }

      protected void UserMain( )
      {
         standaloneStartup( ) ;
      }

      protected void standaloneStartup( )
      {
         standaloneStartupServer( ) ;
         disable_std_buttons( ) ;
         enableDisable( ) ;
         Process( ) ;
      }

      protected void standaloneStartupServer( )
      {
         /* Execute Start event if defined. */
         context.wbGlbDoneStart = 0 ;
         /* Execute user event: E11012 */
         E11012 ();
         context.wbGlbDoneStart = 1 ;
         assign_properties_default( ) ;
         if ( AnyError == 0 )
         {
            if ( StringUtil.StrCmp(context.GetRequestMethod( ), "POST") == 0 )
            {
               /* Read saved SDTs. */
               /* Read variables values. */
               A1AlumnoId = (short)(context.localUtil.CToN( cgiGet( edtAlumnoId_Internalname), ",", ".")) ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A1AlumnoId", StringUtil.LTrim( StringUtil.Str( (decimal)(A1AlumnoId), 4, 0)));
               A2AlumnoNombre = cgiGet( edtAlumnoNombre_Internalname) ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A2AlumnoNombre", A2AlumnoNombre);
               A3AlumnoApellidos = cgiGet( edtAlumnoApellidos_Internalname) ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A3AlumnoApellidos", A3AlumnoApellidos);
               A4AlumnoNombreCompleto = cgiGet( edtAlumnoNombreCompleto_Internalname) ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A4AlumnoNombreCompleto", A4AlumnoNombreCompleto);
               A5AlumnoNIF = cgiGet( edtAlumnoNIF_Internalname) ;
               n5AlumnoNIF = false ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A5AlumnoNIF", A5AlumnoNIF);
               n5AlumnoNIF = (String.IsNullOrEmpty(StringUtil.RTrim( A5AlumnoNIF)) ? true : false) ;
               if ( context.localUtil.VCDate( cgiGet( edtAlumnoFechaNacimiento_Internalname), 2) == 0 )
               {
                  GX_msglist.addItem(context.GetMessage( "GXM_faildate", new   object[]  {"Alumno Fecha Nacimiento"}), 1, "ALUMNOFECHANACIMIENTO");
                  AnyError = 1 ;
                  GX_FocusControl = edtAlumnoFechaNacimiento_Internalname ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
                  wbErr = true ;
                  A6AlumnoFechaNacimiento = DateTime.MinValue ;
                  n6AlumnoFechaNacimiento = false ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A6AlumnoFechaNacimiento", context.localUtil.Format(A6AlumnoFechaNacimiento, "99/99/99"));
               }
               else
               {
                  A6AlumnoFechaNacimiento = context.localUtil.CToD( cgiGet( edtAlumnoFechaNacimiento_Internalname), 2) ;
                  n6AlumnoFechaNacimiento = false ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A6AlumnoFechaNacimiento", context.localUtil.Format(A6AlumnoFechaNacimiento, "99/99/99"));
               }
               n6AlumnoFechaNacimiento = ((DateTime.MinValue==A6AlumnoFechaNacimiento) ? true : false) ;
               A30AlumnoEmail = cgiGet( edtAlumnoEmail_Internalname) ;
               n30AlumnoEmail = false ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A30AlumnoEmail", A30AlumnoEmail);
               n30AlumnoEmail = (String.IsNullOrEmpty(StringUtil.RTrim( A30AlumnoEmail)) ? true : false) ;
               A31AlumnoWeb = cgiGet( edtAlumnoWeb_Internalname) ;
               n31AlumnoWeb = false ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A31AlumnoWeb", A31AlumnoWeb);
               n31AlumnoWeb = (String.IsNullOrEmpty(StringUtil.RTrim( A31AlumnoWeb)) ? true : false) ;
               A34AlumnoTelefono = cgiGet( edtAlumnoTelefono_Internalname) ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A34AlumnoTelefono", A34AlumnoTelefono);
               A9AlumnoNombrePadre = cgiGet( edtAlumnoNombrePadre_Internalname) ;
               n9AlumnoNombrePadre = false ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A9AlumnoNombrePadre", A9AlumnoNombrePadre);
               n9AlumnoNombrePadre = (String.IsNullOrEmpty(StringUtil.RTrim( A9AlumnoNombrePadre)) ? true : false) ;
               A10AlumnoNombreMadre = cgiGet( edtAlumnoNombreMadre_Internalname) ;
               n10AlumnoNombreMadre = false ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A10AlumnoNombreMadre", A10AlumnoNombreMadre);
               n10AlumnoNombreMadre = (String.IsNullOrEmpty(StringUtil.RTrim( A10AlumnoNombreMadre)) ? true : false) ;
               A11AlumnoObservaciones = cgiGet( edtAlumnoObservaciones_Internalname) ;
               n11AlumnoObservaciones = false ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A11AlumnoObservaciones", A11AlumnoObservaciones);
               n11AlumnoObservaciones = (String.IsNullOrEmpty(StringUtil.RTrim( A11AlumnoObservaciones)) ? true : false) ;
               /* Read saved values. */
               Z1AlumnoId = (short)(context.localUtil.CToN( cgiGet( "Z1AlumnoId"), ",", ".")) ;
               Z2AlumnoNombre = cgiGet( "Z2AlumnoNombre") ;
               Z3AlumnoApellidos = cgiGet( "Z3AlumnoApellidos") ;
               Z5AlumnoNIF = cgiGet( "Z5AlumnoNIF") ;
               Z6AlumnoFechaNacimiento = context.localUtil.CToD( cgiGet( "Z6AlumnoFechaNacimiento"), 0) ;
               Z30AlumnoEmail = cgiGet( "Z30AlumnoEmail") ;
               Z31AlumnoWeb = cgiGet( "Z31AlumnoWeb") ;
               Z34AlumnoTelefono = cgiGet( "Z34AlumnoTelefono") ;
               Z9AlumnoNombrePadre = cgiGet( "Z9AlumnoNombrePadre") ;
               Z10AlumnoNombreMadre = cgiGet( "Z10AlumnoNombreMadre") ;
               Z11AlumnoObservaciones = cgiGet( "Z11AlumnoObservaciones") ;
               IsConfirmed = (short)(context.localUtil.CToN( cgiGet( "IsConfirmed"), ",", ".")) ;
               IsModified = (short)(context.localUtil.CToN( cgiGet( "IsModified"), ",", ".")) ;
               Gx_mode = cgiGet( "Mode") ;
               nRC_Gridalumno_tutorias = (short)(context.localUtil.CToN( cgiGet( "nRC_Gridalumno_tutorias"), ",", ".")) ;
               AV7AlumnoId = (short)(context.localUtil.CToN( cgiGet( "vALUMNOID"), ",", ".")) ;
               AV12Pgmname = cgiGet( "vPGMNAME") ;
               Gx_mode = cgiGet( "vMODE") ;
               /* Read subfile selected row values. */
               /* Read hidden variables. */
               standaloneNotModal( ) ;
            }
            else
            {
               standaloneNotModal( ) ;
               if ( StringUtil.StrCmp(gxfirstwebparm, "viewer") == 0 )
               {
                  Gx_mode = "DSP" ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
                  A1AlumnoId = (short)(NumberUtil.Val( GetNextPar( ), ".")) ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A1AlumnoId", StringUtil.LTrim( StringUtil.Str( (decimal)(A1AlumnoId), 4, 0)));
                  getEqualNoModal( ) ;
                  Gx_mode = "DSP" ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
                  disable_std_buttons( ) ;
                  standaloneModal( ) ;
               }
               else
               {
                  if ( StringUtil.StrCmp(Gx_mode, "DSP") == 0 )
                  {
                     sMode1 = Gx_mode ;
                     Gx_mode = "UPD" ;
                     context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
                     Gx_mode = sMode1 ;
                     context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
                  }
                  standaloneModal( ) ;
                  if ( StringUtil.StrCmp(Gx_mode, "INS") != 0 )
                  {
                     getByPrimaryKey( ) ;
                     if ( RcdFound1 == 1 )
                     {
                        if ( StringUtil.StrCmp(Gx_mode, "DLT") == 0 )
                        {
                           /* Confirm record */
                           CONFIRM_010( ) ;
                           if ( AnyError == 0 )
                           {
                              GX_FocusControl = bttBtn_enter_Internalname ;
                              context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
                           }
                        }
                     }
                     else
                     {
                        GX_msglist.addItem(context.GetMessage( "GXM_noinsert"), 1, "ALUMNOID");
                        AnyError = 1 ;
                     }
                  }
               }
            }
         }
      }

      protected void Process( )
      {
         if ( StringUtil.StrCmp(context.GetRequestMethod( ), "POST") == 0 )
         {
            /* Read Transaction buttons. */
            sEvt = cgiGet( "_EventName") ;
            EvtGridId = cgiGet( "_EventGridId") ;
            EvtRowId = cgiGet( "_EventRowId") ;
            if ( StringUtil.Len( sEvt) > 0 )
            {
               sEvtType = StringUtil.Left( sEvt, 1) ;
               sEvt = StringUtil.Right( sEvt, (short)(StringUtil.Len( sEvt)-1)) ;
               /* Check if conditions changed and reset current page numbers */
               if ( StringUtil.StrCmp(sEvtType, "M") != 0 )
               {
                  if ( StringUtil.StrCmp(sEvtType, "E") == 0 )
                  {
                     sEvtType = StringUtil.Right( sEvt, 1) ;
                     if ( StringUtil.StrCmp(sEvtType, ".") == 0 )
                     {
                        sEvt = StringUtil.Left( sEvt, (short)(StringUtil.Len( sEvt)-1)) ;
                        if ( StringUtil.StrCmp(sEvt, "ENTER") == 0 )
                        {
                           context.wbHandled = 1 ;
                           btn_enter( ) ;
                           /* No code required for Cancel button. It is implemented as the Reset button. */
                        }
                        else if ( StringUtil.StrCmp(sEvt, "FIRST") == 0 )
                        {
                           context.wbHandled = 1 ;
                        }
                        else if ( StringUtil.StrCmp(sEvt, "PREVIOUS") == 0 )
                        {
                           context.wbHandled = 1 ;
                        }
                        else if ( StringUtil.StrCmp(sEvt, "NEXT") == 0 )
                        {
                           context.wbHandled = 1 ;
                        }
                        else if ( StringUtil.StrCmp(sEvt, "LAST") == 0 )
                        {
                           context.wbHandled = 1 ;
                        }
                        else if ( StringUtil.StrCmp(sEvt, "SELECT") == 0 )
                        {
                           context.wbHandled = 1 ;
                        }
                        else if ( StringUtil.StrCmp(sEvt, "DELETE") == 0 )
                        {
                           context.wbHandled = 1 ;
                           btn_delete( ) ;
                        }
                     }
                     else
                     {
                        sEvtType = StringUtil.Right( sEvt, 4) ;
                        sEvt = StringUtil.Left( sEvt, (short)(StringUtil.Len( sEvt)-4)) ;
                        if ( ( StringUtil.StrCmp(StringUtil.Left( sEvt, 5), "START") == 0 ) || ( StringUtil.StrCmp(StringUtil.Left( sEvt, 9), "AFTER TRN") == 0 ) )
                        {
                           nGXsfl_100_idx = (short)(NumberUtil.Val( sEvtType, ".")) ;
                           sGXsfl_100_idx = StringUtil.PadL( StringUtil.LTrim( StringUtil.Str( (decimal)(nGXsfl_100_idx), 4, 0)), 4, "0") ;
                           edtAlumnoTutoriasFecha_Internalname = "ALUMNOTUTORIASFECHA_"+sGXsfl_100_idx ;
                           edtAlumnoTutoriasMotivo_Internalname = "ALUMNOTUTORIASMOTIVO_"+sGXsfl_100_idx ;
                           edtAlumnoTutoriasDetalles_Internalname = "ALUMNOTUTORIASDETALLES_"+sGXsfl_100_idx ;
                           if ( context.localUtil.VCDate( cgiGet( edtAlumnoTutoriasFecha_Internalname), 2) == 0 )
                           {
                              GX_msglist.addItem(context.GetMessage( "GXM_faildate", new   object[]  {"Alumno Tutorias Fecha"}), 1, "ALUMNOTUTORIASFECHA");
                              AnyError = 1 ;
                              GX_FocusControl = edtAlumnoTutoriasFecha_Internalname ;
                              context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
                              wbErr = true ;
                              A12AlumnoTutoriasFecha = DateTime.MinValue ;
                              context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A12AlumnoTutoriasFecha", context.localUtil.Format(A12AlumnoTutoriasFecha, "99/99/99"));
                           }
                           else
                           {
                              A12AlumnoTutoriasFecha = context.localUtil.CToD( cgiGet( edtAlumnoTutoriasFecha_Internalname), 2) ;
                              context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A12AlumnoTutoriasFecha", context.localUtil.Format(A12AlumnoTutoriasFecha, "99/99/99"));
                           }
                           A13AlumnoTutoriasMotivo = cgiGet( edtAlumnoTutoriasMotivo_Internalname) ;
                           n13AlumnoTutoriasMotivo = false ;
                           context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A13AlumnoTutoriasMotivo", A13AlumnoTutoriasMotivo);
                           n13AlumnoTutoriasMotivo = (String.IsNullOrEmpty(StringUtil.RTrim( A13AlumnoTutoriasMotivo)) ? true : false) ;
                           A14AlumnoTutoriasDetalles = cgiGet( edtAlumnoTutoriasDetalles_Internalname) ;
                           n14AlumnoTutoriasDetalles = false ;
                           context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A14AlumnoTutoriasDetalles", A14AlumnoTutoriasDetalles);
                           n14AlumnoTutoriasDetalles = (String.IsNullOrEmpty(StringUtil.RTrim( A14AlumnoTutoriasDetalles)) ? true : false) ;
                           GXCCtl = "Z12AlumnoTutoriasFecha_" + sGXsfl_100_idx ;
                           Z12AlumnoTutoriasFecha = context.localUtil.CToD( cgiGet( GXCCtl), 0) ;
                           GXCCtl = "Z13AlumnoTutoriasMotivo_" + sGXsfl_100_idx ;
                           Z13AlumnoTutoriasMotivo = cgiGet( GXCCtl) ;
                           GXCCtl = "Z14AlumnoTutoriasDetalles_" + sGXsfl_100_idx ;
                           Z14AlumnoTutoriasDetalles = cgiGet( GXCCtl) ;
                           GXCCtl = "nRcdDeleted_2_" + sGXsfl_100_idx ;
                           nRcdDeleted_2 = (short)(context.localUtil.CToN( cgiGet( GXCCtl), ",", ".")) ;
                           GXCCtl = "nRcdExists_2_" + sGXsfl_100_idx ;
                           nRcdExists_2 = (short)(context.localUtil.CToN( cgiGet( GXCCtl), ",", ".")) ;
                           GXCCtl = "nIsMod_2_" + sGXsfl_100_idx ;
                           nIsMod_2 = (short)(context.localUtil.CToN( cgiGet( GXCCtl), ",", ".")) ;
                           GXCCtl = "vALUMNOID_" + sGXsfl_100_idx ;
                           AV7AlumnoId = (short)(context.localUtil.CToN( cgiGet( GXCCtl), ",", ".")) ;
                           sEvtType = StringUtil.Right( sEvt, 1) ;
                           if ( StringUtil.StrCmp(sEvtType, ".") == 0 )
                           {
                              sEvt = StringUtil.Left( sEvt, (short)(StringUtil.Len( sEvt)-1)) ;
                              if ( StringUtil.StrCmp(sEvt, "START") == 0 )
                              {
                                 context.wbHandled = 1 ;
                                 dynload_actions( ) ;
                                 /* Execute user event: E11012 */
                                 E11012 ();
                              }
                              else if ( StringUtil.StrCmp(sEvt, "AFTER TRN") == 0 )
                              {
                                 context.wbHandled = 1 ;
                                 dynload_actions( ) ;
                                 /* Execute user event: E12012 */
                                 E12012 ();
                              }
                           }
                           else
                           {
                           }
                        }
                     }
                  }
                  context.wbHandled = 1 ;
               }
            }
         }
      }

      protected void AfterTrn( )
      {
         if ( trnEnded == 1 )
         {
            /* Execute user event: E12012 */
            E12012 ();
            trnEnded = 0 ;
            standaloneNotModal( ) ;
            standaloneModal( ) ;
            if ( ( StringUtil.StrCmp(Gx_mode, "INS") == 0 )  )
            {
               /* Clear variables for new insertion. */
               InitAll011( ) ;
               standaloneNotModal( ) ;
               standaloneModal( ) ;
            }
         }
      }

      public override String ToString( )
      {
         return "" ;
      }

      public GxContentInfo GetContentInfo( )
      {
         return (GxContentInfo)(null) ;
      }

      protected void disable_std_buttons( )
      {
         imgBtn_delete2_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_delete2_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_delete2_Visible), 5, 0)));
         imgBtn_delete2_separator_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_delete2_separator_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_delete2_separator_Visible), 5, 0)));
         bttBtn_delete_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, bttBtn_delete_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(bttBtn_delete_Visible), 5, 0)));
         imgBtn_first_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_first_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_first_Visible), 5, 0)));
         imgBtn_first_separator_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_first_separator_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_first_separator_Visible), 5, 0)));
         imgBtn_previous_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_previous_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_previous_Visible), 5, 0)));
         imgBtn_previous_separator_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_previous_separator_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_previous_separator_Visible), 5, 0)));
         imgBtn_next_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_next_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_next_Visible), 5, 0)));
         imgBtn_next_separator_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_next_separator_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_next_separator_Visible), 5, 0)));
         imgBtn_last_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_last_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_last_Visible), 5, 0)));
         imgBtn_last_separator_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_last_separator_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_last_separator_Visible), 5, 0)));
         imgBtn_select_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_select_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_select_Visible), 5, 0)));
         imgBtn_select_separator_Visible = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_select_separator_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_select_separator_Visible), 5, 0)));
         if ( ( StringUtil.StrCmp(Gx_mode, "DSP") == 0 ) || ( StringUtil.StrCmp(Gx_mode, "DLT") == 0 ) )
         {
            imgBtn_delete2_Visible = 0 ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_delete2_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_delete2_Visible), 5, 0)));
            imgBtn_delete2_separator_Visible = 0 ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_delete2_separator_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_delete2_separator_Visible), 5, 0)));
            bttBtn_delete_Visible = 0 ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, bttBtn_delete_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(bttBtn_delete_Visible), 5, 0)));
            if ( StringUtil.StrCmp(Gx_mode, "DSP") == 0 )
            {
               imgBtn_enter2_Visible = 0 ;
               context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_enter2_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_enter2_Visible), 5, 0)));
               imgBtn_enter2_separator_Visible = 0 ;
               context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_enter2_separator_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_enter2_separator_Visible), 5, 0)));
               bttBtn_enter_Visible = 0 ;
               context.httpAjaxContext.ajax_rsp_assign_prop("", false, bttBtn_enter_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(bttBtn_enter_Visible), 5, 0)));
            }
            edtAlumnoId_Enabled = 0 ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtAlumnoId_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtAlumnoId_Enabled), 5, 0)));
            edtAlumnoNombre_Enabled = 0 ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtAlumnoNombre_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtAlumnoNombre_Enabled), 5, 0)));
            edtAlumnoApellidos_Enabled = 0 ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtAlumnoApellidos_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtAlumnoApellidos_Enabled), 5, 0)));
            edtAlumnoNombreCompleto_Enabled = 0 ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtAlumnoNombreCompleto_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtAlumnoNombreCompleto_Enabled), 5, 0)));
            edtAlumnoNIF_Enabled = 0 ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtAlumnoNIF_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtAlumnoNIF_Enabled), 5, 0)));
            edtAlumnoFechaNacimiento_Enabled = 0 ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtAlumnoFechaNacimiento_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtAlumnoFechaNacimiento_Enabled), 5, 0)));
            edtAlumnoEmail_Enabled = 0 ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtAlumnoEmail_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtAlumnoEmail_Enabled), 5, 0)));
            edtAlumnoWeb_Enabled = 0 ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtAlumnoWeb_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtAlumnoWeb_Enabled), 5, 0)));
            edtAlumnoTelefono_Enabled = 0 ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtAlumnoTelefono_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtAlumnoTelefono_Enabled), 5, 0)));
            edtAlumnoNombrePadre_Enabled = 0 ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtAlumnoNombrePadre_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtAlumnoNombrePadre_Enabled), 5, 0)));
            edtAlumnoNombreMadre_Enabled = 0 ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtAlumnoNombreMadre_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtAlumnoNombreMadre_Enabled), 5, 0)));
            edtAlumnoObservaciones_Enabled = 0 ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtAlumnoObservaciones_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtAlumnoObservaciones_Enabled), 5, 0)));
            edtAlumnoTutoriasFecha_Enabled = 0 ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtAlumnoTutoriasFecha_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtAlumnoTutoriasFecha_Enabled), 5, 0)));
            edtAlumnoTutoriasMotivo_Enabled = 0 ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtAlumnoTutoriasMotivo_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtAlumnoTutoriasMotivo_Enabled), 5, 0)));
            edtAlumnoTutoriasDetalles_Enabled = 0 ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtAlumnoTutoriasDetalles_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtAlumnoTutoriasDetalles_Enabled), 5, 0)));
         }
      }

      protected void set_caption( )
      {
         if ( ( IsConfirmed == 1 ) && ( AnyError == 0 ) )
         {
            if ( StringUtil.StrCmp(Gx_mode, "DLT") == 0 )
            {
               GX_msglist.addItem(context.GetMessage( "GXM_confdelete"), 0, "");
            }
            else
            {
               GX_msglist.addItem(context.GetMessage( "GXM_mustconfirm"), 0, "");
            }
         }
      }

      protected void CONFIRM_010( )
      {
         BeforeValidate011( ) ;
         if ( AnyError == 0 )
         {
            if ( StringUtil.StrCmp(Gx_mode, "DLT") == 0 )
            {
               OnDeleteControls011( ) ;
            }
            else
            {
               CheckExtendedTable011( ) ;
               CloseExtendedTableCursors011( ) ;
            }
         }
         if ( AnyError == 0 )
         {
            /* Save parent mode. */
            sMode1 = Gx_mode ;
            CONFIRM_012( ) ;
            if ( AnyError == 0 )
            {
               /* Restore parent mode. */
               Gx_mode = sMode1 ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
               IsConfirmed = 1 ;
            }
            /* Restore parent mode. */
            Gx_mode = sMode1 ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
         }
      }

      protected void CONFIRM_012( )
      {
         nGXsfl_100_idx = 0 ;
         while ( nGXsfl_100_idx < nRC_Gridalumno_tutorias )
         {
            ReadRow012( ) ;
            if ( ( nRcdExists_2 != 0 ) || ( nIsMod_2 != 0 ) )
            {
               GetKey012( ) ;
               if ( ( nRcdExists_2 == 0 ) && ( nRcdDeleted_2 == 0 ) )
               {
                  if ( RcdFound2 == 0 )
                  {
                     Gx_mode = "INS" ;
                     context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
                     BeforeValidate012( ) ;
                     if ( AnyError == 0 )
                     {
                        CheckExtendedTable012( ) ;
                        CloseExtendedTableCursors012( ) ;
                        if ( AnyError == 0 )
                        {
                           IsConfirmed = 1 ;
                        }
                     }
                  }
                  else
                  {
                     GX_msglist.addItem(context.GetMessage( "GXM_noupdate"), "DuplicatePrimaryKey", 1, "");
                     AnyError = 1 ;
                     GX_FocusControl = edtAlumnoTutoriasFecha_Internalname ;
                     context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
                  }
               }
               else
               {
                  if ( RcdFound2 != 0 )
                  {
                     if ( nRcdDeleted_2 != 0 )
                     {
                        Gx_mode = "DLT" ;
                        context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
                        getByPrimaryKey012( ) ;
                        Load012( ) ;
                        BeforeValidate012( ) ;
                        if ( AnyError == 0 )
                        {
                           OnDeleteControls012( ) ;
                        }
                     }
                     else
                     {
                        if ( nIsMod_2 != 0 )
                        {
                           Gx_mode = "UPD" ;
                           context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
                           BeforeValidate012( ) ;
                           if ( AnyError == 0 )
                           {
                              CheckExtendedTable012( ) ;
                              CloseExtendedTableCursors012( ) ;
                              if ( AnyError == 0 )
                              {
                                 IsConfirmed = 1 ;
                              }
                           }
                        }
                     }
                  }
                  else
                  {
                     if ( nRcdDeleted_2 == 0 )
                     {
                        GX_msglist.addItem(context.GetMessage( "GXM_recdeleted"), 1, "");
                        AnyError = 1 ;
                        GX_FocusControl = edtAlumnoTutoriasFecha_Internalname ;
                        context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
                     }
                  }
               }
            }
            ChangePostValue( edtAlumnoTutoriasFecha_Internalname, context.localUtil.Format(A12AlumnoTutoriasFecha, "99/99/99")) ;
            ChangePostValue( edtAlumnoTutoriasMotivo_Internalname, StringUtil.RTrim( A13AlumnoTutoriasMotivo)) ;
            ChangePostValue( edtAlumnoTutoriasDetalles_Internalname, StringUtil.RTrim( A14AlumnoTutoriasDetalles)) ;
            ChangePostValue( "ZT_"+"Z12AlumnoTutoriasFecha_"+sGXsfl_100_idx, context.localUtil.DToC( Z12AlumnoTutoriasFecha, 0, "/")) ;
            ChangePostValue( "ZT_"+"Z13AlumnoTutoriasMotivo_"+sGXsfl_100_idx, StringUtil.RTrim( Z13AlumnoTutoriasMotivo)) ;
            ChangePostValue( "ZT_"+"Z14AlumnoTutoriasDetalles_"+sGXsfl_100_idx, StringUtil.RTrim( Z14AlumnoTutoriasDetalles)) ;
            ChangePostValue( "nRcdDeleted_2_"+sGXsfl_100_idx, StringUtil.LTrim( StringUtil.NToC( (decimal)(nRcdDeleted_2), 4, 0, ",", ""))) ;
            ChangePostValue( "nRcdExists_2_"+sGXsfl_100_idx, StringUtil.LTrim( StringUtil.NToC( (decimal)(nRcdExists_2), 4, 0, ",", ""))) ;
            ChangePostValue( "nIsMod_2_"+sGXsfl_100_idx, StringUtil.LTrim( StringUtil.NToC( (decimal)(nIsMod_2), 4, 0, ",", ""))) ;
            if ( nIsMod_2 != 0 )
            {
               ChangePostValue( "ALUMNOTUTORIASFECHA_"+sGXsfl_100_idx+"Enabled", StringUtil.LTrim( StringUtil.NToC( (decimal)(edtAlumnoTutoriasFecha_Enabled), 5, 0, ".", ""))) ;
               ChangePostValue( "ALUMNOTUTORIASMOTIVO_"+sGXsfl_100_idx+"Enabled", StringUtil.LTrim( StringUtil.NToC( (decimal)(edtAlumnoTutoriasMotivo_Enabled), 5, 0, ".", ""))) ;
               ChangePostValue( "ALUMNOTUTORIASDETALLES_"+sGXsfl_100_idx+"Enabled", StringUtil.LTrim( StringUtil.NToC( (decimal)(edtAlumnoTutoriasDetalles_Enabled), 5, 0, ".", ""))) ;
            }
         }
         /* Start of After( level) rules */
         /* End of After( level) rules */
      }

      protected void ResetCaption010( )
      {
      }

      protected void E11012( )
      {
         /* Start Routine */
         new isauthorized(context ).execute(  AV12Pgmname, out  AV9IsAuthorized) ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "AV12Pgmname", AV12Pgmname);
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "AV9IsAuthorized", StringUtil.BoolToStr( AV9IsAuthorized));
         if ( ! AV9IsAuthorized )
         {
            context.wjLoc = formatLink("notauthorized.aspx") + "?" + UrlEncode(StringUtil.RTrim(AV12Pgmname)) ;
         }
         AV10TrnContext.FromXml(AV11WebSession.Get("TrnContext"), "");
      }

      protected void E12012( )
      {
         /* After Trn Routine */
         if ( ( StringUtil.StrCmp(Gx_mode, "DLT") == 0 ) && ! AV10TrnContext.gxTpr_Callerondelete )
         {
            context.wjLoc = formatLink("wwalumno.aspx")  ;
         }
         context.setWebReturnParms(new Object[] {});
         context.nUserReturn = 1 ;
         pr_default.close(1);
         returnInSub = true;
         if (true) return;
      }

      protected void ZM011( short GX_JID )
      {
         if ( ( GX_JID == 6 ) || ( GX_JID == 0 ) )
         {
            if ( StringUtil.StrCmp(Gx_mode, "INS") != 0 )
            {
               Z2AlumnoNombre = T00015_A2AlumnoNombre[0] ;
               Z3AlumnoApellidos = T00015_A3AlumnoApellidos[0] ;
               Z5AlumnoNIF = T00015_A5AlumnoNIF[0] ;
               Z6AlumnoFechaNacimiento = T00015_A6AlumnoFechaNacimiento[0] ;
               Z30AlumnoEmail = T00015_A30AlumnoEmail[0] ;
               Z31AlumnoWeb = T00015_A31AlumnoWeb[0] ;
               Z34AlumnoTelefono = T00015_A34AlumnoTelefono[0] ;
               Z9AlumnoNombrePadre = T00015_A9AlumnoNombrePadre[0] ;
               Z10AlumnoNombreMadre = T00015_A10AlumnoNombreMadre[0] ;
               Z11AlumnoObservaciones = T00015_A11AlumnoObservaciones[0] ;
            }
            else
            {
               Z2AlumnoNombre = A2AlumnoNombre ;
               Z3AlumnoApellidos = A3AlumnoApellidos ;
               Z5AlumnoNIF = A5AlumnoNIF ;
               Z6AlumnoFechaNacimiento = A6AlumnoFechaNacimiento ;
               Z30AlumnoEmail = A30AlumnoEmail ;
               Z31AlumnoWeb = A31AlumnoWeb ;
               Z34AlumnoTelefono = A34AlumnoTelefono ;
               Z9AlumnoNombrePadre = A9AlumnoNombrePadre ;
               Z10AlumnoNombreMadre = A10AlumnoNombreMadre ;
               Z11AlumnoObservaciones = A11AlumnoObservaciones ;
            }
         }
         if ( GX_JID == -6 )
         {
            Z1AlumnoId = A1AlumnoId ;
            Z2AlumnoNombre = A2AlumnoNombre ;
            Z3AlumnoApellidos = A3AlumnoApellidos ;
            Z5AlumnoNIF = A5AlumnoNIF ;
            Z6AlumnoFechaNacimiento = A6AlumnoFechaNacimiento ;
            Z30AlumnoEmail = A30AlumnoEmail ;
            Z31AlumnoWeb = A31AlumnoWeb ;
            Z34AlumnoTelefono = A34AlumnoTelefono ;
            Z9AlumnoNombrePadre = A9AlumnoNombrePadre ;
            Z10AlumnoNombreMadre = A10AlumnoNombreMadre ;
            Z11AlumnoObservaciones = A11AlumnoObservaciones ;
         }
      }

      protected void standaloneNotModal( )
      {
         edtAlumnoId_Enabled = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtAlumnoId_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtAlumnoId_Enabled), 5, 0)));
         edtAlumnoId_Enabled = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtAlumnoId_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtAlumnoId_Enabled), 5, 0)));
         imgBtn_delete2_Enabled = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_delete2_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_delete2_Enabled), 5, 0)));
         if ( ! (0==AV7AlumnoId) )
         {
            A1AlumnoId = AV7AlumnoId ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A1AlumnoId", StringUtil.LTrim( StringUtil.Str( (decimal)(A1AlumnoId), 4, 0)));
         }
      }

      protected void standaloneModal( )
      {
         if ( StringUtil.StrCmp(Gx_mode, "DSP") == 0 )
         {
            imgBtn_enter2_Enabled = 0 ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_enter2_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_enter2_Enabled), 5, 0)));
         }
         else
         {
            imgBtn_enter2_Enabled = 1 ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, imgBtn_enter2_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(imgBtn_enter2_Enabled), 5, 0)));
         }
      }

      protected void Load011( )
      {
         /* Using cursor T00016 */
         pr_default.execute(4, new Object[] {A1AlumnoId});
         if ( (pr_default.getStatus(4) != 101) )
         {
            RcdFound1 = 1 ;
            A2AlumnoNombre = T00016_A2AlumnoNombre[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A2AlumnoNombre", A2AlumnoNombre);
            A3AlumnoApellidos = T00016_A3AlumnoApellidos[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A3AlumnoApellidos", A3AlumnoApellidos);
            A5AlumnoNIF = T00016_A5AlumnoNIF[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A5AlumnoNIF", A5AlumnoNIF);
            n5AlumnoNIF = T00016_n5AlumnoNIF[0] ;
            A6AlumnoFechaNacimiento = T00016_A6AlumnoFechaNacimiento[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A6AlumnoFechaNacimiento", context.localUtil.Format(A6AlumnoFechaNacimiento, "99/99/99"));
            n6AlumnoFechaNacimiento = T00016_n6AlumnoFechaNacimiento[0] ;
            A30AlumnoEmail = T00016_A30AlumnoEmail[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A30AlumnoEmail", A30AlumnoEmail);
            n30AlumnoEmail = T00016_n30AlumnoEmail[0] ;
            A31AlumnoWeb = T00016_A31AlumnoWeb[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A31AlumnoWeb", A31AlumnoWeb);
            n31AlumnoWeb = T00016_n31AlumnoWeb[0] ;
            A34AlumnoTelefono = T00016_A34AlumnoTelefono[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A34AlumnoTelefono", A34AlumnoTelefono);
            A9AlumnoNombrePadre = T00016_A9AlumnoNombrePadre[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A9AlumnoNombrePadre", A9AlumnoNombrePadre);
            n9AlumnoNombrePadre = T00016_n9AlumnoNombrePadre[0] ;
            A10AlumnoNombreMadre = T00016_A10AlumnoNombreMadre[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A10AlumnoNombreMadre", A10AlumnoNombreMadre);
            n10AlumnoNombreMadre = T00016_n10AlumnoNombreMadre[0] ;
            A11AlumnoObservaciones = T00016_A11AlumnoObservaciones[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A11AlumnoObservaciones", A11AlumnoObservaciones);
            n11AlumnoObservaciones = T00016_n11AlumnoObservaciones[0] ;
            ZM011( -6) ;
         }
         pr_default.close(4);
         OnLoadActions011( ) ;
      }

      protected void OnLoadActions011( )
      {
         AV12Pgmname = "Alumno" ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "AV12Pgmname", AV12Pgmname);
         A4AlumnoNombreCompleto = A2AlumnoNombre + " " + A3AlumnoApellidos ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A4AlumnoNombreCompleto", A4AlumnoNombreCompleto);
      }

      protected void CheckExtendedTable011( )
      {
         Gx_BScreen = 1 ;
         standaloneModal( ) ;
         AV12Pgmname = "Alumno" ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "AV12Pgmname", AV12Pgmname);
         A4AlumnoNombreCompleto = A2AlumnoNombre + " " + A3AlumnoApellidos ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A4AlumnoNombreCompleto", A4AlumnoNombreCompleto);
         if ( ! ( (DateTime.MinValue==A6AlumnoFechaNacimiento) || ( A6AlumnoFechaNacimiento >= context.localUtil.YMDToD( 1753, 1, 1) ) ) )
         {
            GX_msglist.addItem("Campo Alumno Fecha Nacimiento fuera de rango", "OutOfRange", 1, "");
            AnyError = 1 ;
         }
      }

      protected void CloseExtendedTableCursors011( )
      {
      }

      protected void enableDisable( )
      {
      }

      protected void GetKey011( )
      {
         /* Using cursor T00017 */
         pr_default.execute(5, new Object[] {A1AlumnoId});
         if ( (pr_default.getStatus(5) != 101) )
         {
            RcdFound1 = 1 ;
         }
         else
         {
            RcdFound1 = 0 ;
         }
         pr_default.close(5);
      }

      protected void getByPrimaryKey( )
      {
         /* Using cursor T00015 */
         pr_default.execute(3, new Object[] {A1AlumnoId});
         if ( (pr_default.getStatus(3) != 101) )
         {
            ZM011( 6) ;
            RcdFound1 = 1 ;
            A1AlumnoId = T00015_A1AlumnoId[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A1AlumnoId", StringUtil.LTrim( StringUtil.Str( (decimal)(A1AlumnoId), 4, 0)));
            A2AlumnoNombre = T00015_A2AlumnoNombre[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A2AlumnoNombre", A2AlumnoNombre);
            A3AlumnoApellidos = T00015_A3AlumnoApellidos[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A3AlumnoApellidos", A3AlumnoApellidos);
            A5AlumnoNIF = T00015_A5AlumnoNIF[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A5AlumnoNIF", A5AlumnoNIF);
            n5AlumnoNIF = T00015_n5AlumnoNIF[0] ;
            A6AlumnoFechaNacimiento = T00015_A6AlumnoFechaNacimiento[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A6AlumnoFechaNacimiento", context.localUtil.Format(A6AlumnoFechaNacimiento, "99/99/99"));
            n6AlumnoFechaNacimiento = T00015_n6AlumnoFechaNacimiento[0] ;
            A30AlumnoEmail = T00015_A30AlumnoEmail[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A30AlumnoEmail", A30AlumnoEmail);
            n30AlumnoEmail = T00015_n30AlumnoEmail[0] ;
            A31AlumnoWeb = T00015_A31AlumnoWeb[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A31AlumnoWeb", A31AlumnoWeb);
            n31AlumnoWeb = T00015_n31AlumnoWeb[0] ;
            A34AlumnoTelefono = T00015_A34AlumnoTelefono[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A34AlumnoTelefono", A34AlumnoTelefono);
            A9AlumnoNombrePadre = T00015_A9AlumnoNombrePadre[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A9AlumnoNombrePadre", A9AlumnoNombrePadre);
            n9AlumnoNombrePadre = T00015_n9AlumnoNombrePadre[0] ;
            A10AlumnoNombreMadre = T00015_A10AlumnoNombreMadre[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A10AlumnoNombreMadre", A10AlumnoNombreMadre);
            n10AlumnoNombreMadre = T00015_n10AlumnoNombreMadre[0] ;
            A11AlumnoObservaciones = T00015_A11AlumnoObservaciones[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A11AlumnoObservaciones", A11AlumnoObservaciones);
            n11AlumnoObservaciones = T00015_n11AlumnoObservaciones[0] ;
            Z1AlumnoId = A1AlumnoId ;
            sMode1 = Gx_mode ;
            Gx_mode = "DSP" ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
            Load011( ) ;
            Gx_mode = sMode1 ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
         }
         else
         {
            RcdFound1 = 0 ;
            InitializeNonKey011( ) ;
            sMode1 = Gx_mode ;
            Gx_mode = "DSP" ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
            standaloneModal( ) ;
            Gx_mode = sMode1 ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
         }
         pr_default.close(3);
      }

      protected void getEqualNoModal( )
      {
         GetKey011( ) ;
         if ( RcdFound1 == 0 )
         {
         }
         else
         {
         }
         getByPrimaryKey( ) ;
      }

      protected void move_next( )
      {
         RcdFound1 = 0 ;
         /* Using cursor T00018 */
         pr_default.execute(6, new Object[] {A1AlumnoId});
         if ( (pr_default.getStatus(6) != 101) )
         {
            while ( (pr_default.getStatus(6) != 101) && ( ( T00018_A1AlumnoId[0] < A1AlumnoId ) ) )
            {
               pr_default.readNext(6);
            }
            if ( (pr_default.getStatus(6) != 101) && ( ( T00018_A1AlumnoId[0] > A1AlumnoId ) ) )
            {
               A1AlumnoId = T00018_A1AlumnoId[0] ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A1AlumnoId", StringUtil.LTrim( StringUtil.Str( (decimal)(A1AlumnoId), 4, 0)));
               RcdFound1 = 1 ;
            }
         }
         pr_default.close(3);
      }

      protected void move_previous( )
      {
         RcdFound1 = 0 ;
         /* Using cursor T00019 */
         pr_default.execute(7, new Object[] {A1AlumnoId});
         if ( (pr_default.getStatus(7) != 101) )
         {
            while ( (pr_default.getStatus(7) != 101) && ( ( T00019_A1AlumnoId[0] > A1AlumnoId ) ) )
            {
               pr_default.readNext(7);
            }
            if ( (pr_default.getStatus(7) != 101) && ( ( T00019_A1AlumnoId[0] < A1AlumnoId ) ) )
            {
               A1AlumnoId = T00019_A1AlumnoId[0] ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A1AlumnoId", StringUtil.LTrim( StringUtil.Str( (decimal)(A1AlumnoId), 4, 0)));
               RcdFound1 = 1 ;
            }
         }
         pr_default.close(2);
      }

      protected void btn_enter( )
      {
         nKeyPressed = 1 ;
         GetKey011( ) ;
         if ( RcdFound1 == 1 )
         {
            if ( StringUtil.StrCmp(Gx_mode, "INS") == 0 )
            {
               GX_msglist.addItem(context.GetMessage( "GXM_noupdate"), "DuplicatePrimaryKey", 1, "ALUMNOID");
               AnyError = 1 ;
            }
            else if ( A1AlumnoId != Z1AlumnoId )
            {
               A1AlumnoId = Z1AlumnoId ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A1AlumnoId", StringUtil.LTrim( StringUtil.Str( (decimal)(A1AlumnoId), 4, 0)));
               GX_msglist.addItem(context.GetMessage( "GXM_getbeforeupd"), "CandidateKeyNotFound", 1, "ALUMNOID");
               AnyError = 1 ;
            }
            else if ( StringUtil.StrCmp(Gx_mode, "DLT") == 0 )
            {
               delete( ) ;
               AfterTrn( ) ;
               GX_FocusControl = edtAlumnoNombre_Internalname ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
            }
            else
            {
               /* Update record */
               Update011( ) ;
               GX_FocusControl = edtAlumnoNombre_Internalname ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
            }
         }
         else
         {
            if ( A1AlumnoId != Z1AlumnoId )
            {
               /* Insert record */
               Insert011( ) ;
               GX_FocusControl = edtAlumnoNombre_Internalname ;
               context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
            }
            else
            {
               if ( StringUtil.StrCmp(Gx_mode, "UPD") == 0 )
               {
                  GX_msglist.addItem(context.GetMessage( "GXM_recdeleted"), 1, "ALUMNOID");
                  AnyError = 1 ;
               }
               else
               {
                  /* Insert record */
                  Insert011( ) ;
                  GX_FocusControl = edtAlumnoNombre_Internalname ;
                  context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
               }
            }
         }
         AfterTrn( ) ;
         if ( ( StringUtil.StrCmp(Gx_mode, "UPD") == 0 ) || ( StringUtil.StrCmp(Gx_mode, "DLT") == 0 ) )
         {
            if ( AnyError == 0 )
            {
               context.nUserReturn = 1 ;
            }
         }
      }

      protected void btn_delete( )
      {
         if ( A1AlumnoId != Z1AlumnoId )
         {
            A1AlumnoId = Z1AlumnoId ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A1AlumnoId", StringUtil.LTrim( StringUtil.Str( (decimal)(A1AlumnoId), 4, 0)));
            GX_msglist.addItem(context.GetMessage( "GXM_getbeforedlt"), 1, "ALUMNOID");
            AnyError = 1 ;
         }
         else
         {
            delete( ) ;
            AfterTrn( ) ;
            GX_FocusControl = edtAlumnoNombre_Internalname ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
         }
         if ( AnyError != 0 )
         {
         }
      }

      protected void CheckOptimisticConcurrency011( )
      {
         if ( StringUtil.StrCmp(Gx_mode, "INS") != 0 )
         {
            /* Using cursor T000110 */
            pr_default.execute(8, new Object[] {A1AlumnoId});
            if ( (pr_default.getStatus(8) == 103) )
            {
               GX_msglist.addItem(context.GetMessage( "GXM_lock", new   object[]  {"Alumno"}), "RecordIsLocked", 1, "");
               AnyError = 1 ;
               return  ;
            }
            Gx_longc = false ;
            if ( (pr_default.getStatus(8) == 101) || ( StringUtil.StrCmp(Z2AlumnoNombre, T000110_A2AlumnoNombre[0]) != 0 ) || ( StringUtil.StrCmp(Z3AlumnoApellidos, T000110_A3AlumnoApellidos[0]) != 0 ) || ( StringUtil.StrCmp(Z5AlumnoNIF, T000110_A5AlumnoNIF[0]) != 0 ) || ( Z6AlumnoFechaNacimiento != T000110_A6AlumnoFechaNacimiento[0] ) || ( StringUtil.StrCmp(Z30AlumnoEmail, T000110_A30AlumnoEmail[0]) != 0 ) )
            {
               Gx_longc = true ;
            }
            if ( Gx_longc || ( StringUtil.StrCmp(Z31AlumnoWeb, T000110_A31AlumnoWeb[0]) != 0 ) || ( StringUtil.StrCmp(Z34AlumnoTelefono, T000110_A34AlumnoTelefono[0]) != 0 ) || ( StringUtil.StrCmp(Z9AlumnoNombrePadre, T000110_A9AlumnoNombrePadre[0]) != 0 ) || ( StringUtil.StrCmp(Z10AlumnoNombreMadre, T000110_A10AlumnoNombreMadre[0]) != 0 ) || ( StringUtil.StrCmp(Z11AlumnoObservaciones, T000110_A11AlumnoObservaciones[0]) != 0 ) )
            {
               GX_msglist.addItem(context.GetMessage( "GXM_waschg", new   object[]  {"Alumno"}), "RecordWasChanged", 1, "");
               AnyError = 1 ;
               return  ;
            }
         }
      }

      protected void Insert011( )
      {
         BeforeValidate011( ) ;
         if ( AnyError == 0 )
         {
            CheckExtendedTable011( ) ;
         }
         if ( AnyError == 0 )
         {
            ZM011( 0) ;
            CheckOptimisticConcurrency011( ) ;
            if ( AnyError == 0 )
            {
               AfterConfirm011( ) ;
               if ( AnyError == 0 )
               {
                  BeforeInsert011( ) ;
                  if ( AnyError == 0 )
                  {
                     /* Using cursor T000111 */
                     pr_default.execute(9, new Object[] {A2AlumnoNombre, A3AlumnoApellidos, n5AlumnoNIF, A5AlumnoNIF, n6AlumnoFechaNacimiento, A6AlumnoFechaNacimiento, n30AlumnoEmail, A30AlumnoEmail, n31AlumnoWeb, A31AlumnoWeb, A34AlumnoTelefono, n9AlumnoNombrePadre, A9AlumnoNombrePadre, n10AlumnoNombreMadre, A10AlumnoNombreMadre, n11AlumnoObservaciones, A11AlumnoObservaciones});
                     pr_default.close(9);
                     /* Retrieving last key number assigned */
                     /* Using cursor T000112 */
                     pr_default.execute(10);
                     A1AlumnoId = T000112_A1AlumnoId[0] ;
                     context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A1AlumnoId", StringUtil.LTrim( StringUtil.Str( (decimal)(A1AlumnoId), 4, 0)));
                     pr_default.close(10);
                     if ( AnyError == 0 )
                     {
                        /* Start of After( Insert) rules */
                        /* End of After( Insert) rules */
                        if ( AnyError == 0 )
                        {
                           ProcessLevel011( ) ;
                           if ( AnyError == 0 )
                           {
                              /* Save values for previous() function. */
                              GX_msglist.addItem(context.GetMessage( "GXM_sucadded"), 0, "");
                              ResetCaption010( ) ;
                           }
                        }
                     }
                  }
                  else
                  {
                     GX_msglist.addItem(context.GetMessage( "GXM_unexp"), 1, "");
                     AnyError = 1 ;
                  }
               }
            }
            else
            {
               Load011( ) ;
            }
            EndLevel011( ) ;
         }
         CloseExtendedTableCursors011( ) ;
      }

      protected void Update011( )
      {
         BeforeValidate011( ) ;
         if ( AnyError == 0 )
         {
            CheckExtendedTable011( ) ;
         }
         if ( AnyError == 0 )
         {
            CheckOptimisticConcurrency011( ) ;
            if ( AnyError == 0 )
            {
               AfterConfirm011( ) ;
               if ( AnyError == 0 )
               {
                  BeforeUpdate011( ) ;
                  if ( AnyError == 0 )
                  {
                     /* Using cursor T000113 */
                     pr_default.execute(11, new Object[] {A2AlumnoNombre, A3AlumnoApellidos, n5AlumnoNIF, A5AlumnoNIF, n6AlumnoFechaNacimiento, A6AlumnoFechaNacimiento, n30AlumnoEmail, A30AlumnoEmail, n31AlumnoWeb, A31AlumnoWeb, A34AlumnoTelefono, n9AlumnoNombrePadre, A9AlumnoNombrePadre, n10AlumnoNombreMadre, A10AlumnoNombreMadre, n11AlumnoObservaciones, A11AlumnoObservaciones, A1AlumnoId});
                     pr_default.close(11);
                     if ( (pr_default.getStatus(11) == 103) )
                     {
                        GX_msglist.addItem(context.GetMessage( "GXM_lock", new   object[]  {"Alumno"}), "RecordIsLocked", 1, "");
                        AnyError = 1 ;
                     }
                     DeferredUpdate011( ) ;
                     if ( AnyError == 0 )
                     {
                        /* Start of After( update) rules */
                        /* End of After( update) rules */
                        if ( AnyError == 0 )
                        {
                           ProcessLevel011( ) ;
                           if ( AnyError == 0 )
                           {
                              if ( ( StringUtil.StrCmp(Gx_mode, "UPD") == 0 ) || ( StringUtil.StrCmp(Gx_mode, "DLT") == 0 ) )
                              {
                                 if ( AnyError == 0 )
                                 {
                                    context.nUserReturn = 1 ;
                                 }
                              }
                           }
                        }
                     }
                     else
                     {
                        GX_msglist.addItem(context.GetMessage( "GXM_unexp"), 1, "");
                        AnyError = 1 ;
                     }
                  }
               }
            }
            EndLevel011( ) ;
         }
         CloseExtendedTableCursors011( ) ;
      }

      protected void DeferredUpdate011( )
      {
      }

      protected void delete( )
      {
         BeforeValidate011( ) ;
         if ( AnyError == 0 )
         {
            CheckOptimisticConcurrency011( ) ;
         }
         if ( AnyError == 0 )
         {
            OnDeleteControls011( ) ;
            AfterConfirm011( ) ;
            if ( AnyError == 0 )
            {
               BeforeDelete011( ) ;
               if ( AnyError == 0 )
               {
                  ScanStart012( ) ;
                  while ( RcdFound2 != 0 )
                  {
                     getByPrimaryKey012( ) ;
                     Delete012( ) ;
                     ScanNext012( ) ;
                  }
                  ScanEnd012( ) ;
                  if ( AnyError == 0 )
                  {
                     /* Using cursor T000114 */
                     pr_default.execute(12, new Object[] {A1AlumnoId});
                     pr_default.close(12);
                     if ( AnyError == 0 )
                     {
                        /* Start of After( delete) rules */
                        /* End of After( delete) rules */
                        if ( AnyError == 0 )
                        {
                           if ( ( StringUtil.StrCmp(Gx_mode, "UPD") == 0 ) || ( StringUtil.StrCmp(Gx_mode, "DLT") == 0 ) )
                           {
                              if ( AnyError == 0 )
                              {
                                 context.nUserReturn = 1 ;
                              }
                           }
                        }
                     }
                     else
                     {
                        GX_msglist.addItem(context.GetMessage( "GXM_unexp"), 1, "");
                        AnyError = 1 ;
                     }
                  }
               }
            }
         }
         sMode1 = Gx_mode ;
         Gx_mode = "DLT" ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
         EndLevel011( ) ;
         Gx_mode = sMode1 ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
      }

      protected void OnDeleteControls011( )
      {
         standaloneModal( ) ;
         if ( AnyError == 0 )
         {
            /* Delete mode formulas */
            AV12Pgmname = "Alumno" ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "AV12Pgmname", AV12Pgmname);
            A4AlumnoNombreCompleto = A2AlumnoNombre + " " + A3AlumnoApellidos ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A4AlumnoNombreCompleto", A4AlumnoNombreCompleto);
         }
         if ( AnyError == 0 )
         {
            /* Using cursor T000115 */
            pr_default.execute(13, new Object[] {A1AlumnoId});
            if ( (pr_default.getStatus(13) != 101) )
            {
               GX_msglist.addItem(context.GetMessage( "GXM_del", new   object[]  {"Alumnos"}), "CannotDeleteReferencedRecord", 1, "");
               AnyError = 1 ;
            }
            pr_default.close(13);
         }
      }

      protected void ProcessNestedLevel012( )
      {
         nGXsfl_100_idx = 0 ;
         while ( nGXsfl_100_idx < nRC_Gridalumno_tutorias )
         {
            ReadRow012( ) ;
            if ( ( nRcdExists_2 != 0 ) || ( nIsMod_2 != 0 ) )
            {
               standaloneNotModal012( ) ;
               GetKey012( ) ;
               if ( ( nRcdExists_2 == 0 ) && ( nRcdDeleted_2 == 0 ) )
               {
                  if ( RcdFound2 == 0 )
                  {
                     Gx_mode = "INS" ;
                     context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
                     Insert012( ) ;
                  }
                  else
                  {
                     GX_msglist.addItem(context.GetMessage( "GXM_noupdate"), "DuplicatePrimaryKey", 1, "");
                     AnyError = 1 ;
                     GX_FocusControl = edtAlumnoTutoriasFecha_Internalname ;
                     context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
                  }
               }
               else
               {
                  if ( RcdFound2 != 0 )
                  {
                     if ( ( nRcdDeleted_2 != 0 ) && ( nRcdExists_2 != 0 ) )
                     {
                        Gx_mode = "DLT" ;
                        context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
                        Delete012( ) ;
                     }
                     else
                     {
                        if ( ( nIsMod_2 != 0 ) && ( nRcdExists_2 != 0 ) )
                        {
                           Gx_mode = "UPD" ;
                           context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
                           Update012( ) ;
                        }
                     }
                  }
                  else
                  {
                     if ( nRcdDeleted_2 == 0 )
                     {
                        GX_msglist.addItem(context.GetMessage( "GXM_recdeleted"), 1, "");
                        AnyError = 1 ;
                        GX_FocusControl = edtAlumnoTutoriasFecha_Internalname ;
                        context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
                     }
                  }
               }
            }
            ChangePostValue( edtAlumnoTutoriasFecha_Internalname, context.localUtil.Format(A12AlumnoTutoriasFecha, "99/99/99")) ;
            ChangePostValue( edtAlumnoTutoriasMotivo_Internalname, StringUtil.RTrim( A13AlumnoTutoriasMotivo)) ;
            ChangePostValue( edtAlumnoTutoriasDetalles_Internalname, StringUtil.RTrim( A14AlumnoTutoriasDetalles)) ;
            ChangePostValue( "ZT_"+"Z12AlumnoTutoriasFecha_"+sGXsfl_100_idx, context.localUtil.DToC( Z12AlumnoTutoriasFecha, 0, "/")) ;
            ChangePostValue( "ZT_"+"Z13AlumnoTutoriasMotivo_"+sGXsfl_100_idx, StringUtil.RTrim( Z13AlumnoTutoriasMotivo)) ;
            ChangePostValue( "ZT_"+"Z14AlumnoTutoriasDetalles_"+sGXsfl_100_idx, StringUtil.RTrim( Z14AlumnoTutoriasDetalles)) ;
            ChangePostValue( "nRcdDeleted_2_"+sGXsfl_100_idx, StringUtil.LTrim( StringUtil.NToC( (decimal)(nRcdDeleted_2), 4, 0, ",", ""))) ;
            ChangePostValue( "nRcdExists_2_"+sGXsfl_100_idx, StringUtil.LTrim( StringUtil.NToC( (decimal)(nRcdExists_2), 4, 0, ",", ""))) ;
            ChangePostValue( "nIsMod_2_"+sGXsfl_100_idx, StringUtil.LTrim( StringUtil.NToC( (decimal)(nIsMod_2), 4, 0, ",", ""))) ;
            if ( nIsMod_2 != 0 )
            {
               ChangePostValue( "ALUMNOTUTORIASFECHA_"+sGXsfl_100_idx+"Enabled", StringUtil.LTrim( StringUtil.NToC( (decimal)(edtAlumnoTutoriasFecha_Enabled), 5, 0, ".", ""))) ;
               ChangePostValue( "ALUMNOTUTORIASMOTIVO_"+sGXsfl_100_idx+"Enabled", StringUtil.LTrim( StringUtil.NToC( (decimal)(edtAlumnoTutoriasMotivo_Enabled), 5, 0, ".", ""))) ;
               ChangePostValue( "ALUMNOTUTORIASDETALLES_"+sGXsfl_100_idx+"Enabled", StringUtil.LTrim( StringUtil.NToC( (decimal)(edtAlumnoTutoriasDetalles_Enabled), 5, 0, ".", ""))) ;
            }
         }
         /* Start of After( level) rules */
         /* End of After( level) rules */
         InitAll012( ) ;
         if ( AnyError != 0 )
         {
         }
         nRcdExists_2 = 0 ;
         nIsMod_2 = 0 ;
         nRcdDeleted_2 = 0 ;
      }

      protected void ProcessLevel011( )
      {
         /* Save parent mode. */
         sMode1 = Gx_mode ;
         ProcessNestedLevel012( ) ;
         if ( AnyError != 0 )
         {
         }
         /* Restore parent mode. */
         Gx_mode = sMode1 ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
         /* ' Update level parameters */
      }

      protected void EndLevel011( )
      {
         if ( StringUtil.StrCmp(Gx_mode, "INS") != 0 )
         {
            pr_default.close(8);
         }
         if ( AnyError == 0 )
         {
            BeforeComplete011( ) ;
         }
         if ( AnyError == 0 )
         {
            pr_default.close(7);
            pr_default.close(6);
            pr_default.close(1);
            pr_default.close(0);
            context.CommitDataStores("Alumno");
            if ( AnyError == 0 )
            {
               ConfirmValues010( ) ;
            }
            /* After transaction rules */
            /* Execute 'After Trn' event if defined. */
            trnEnded = 1 ;
         }
         else
         {
            pr_default.close(7);
            pr_default.close(6);
            pr_default.close(1);
            pr_default.close(0);
            context.RollbackDataStores("Alumno");
         }
         IsModified = 0 ;
         if ( AnyError != 0 )
         {
            context.wjLoc = "" ;
            context.nUserReturn = 0 ;
         }
      }

      protected void ScanStart011( )
      {
         /* Using cursor T000116 */
         pr_default.execute(14);
         RcdFound1 = 0 ;
         if ( (pr_default.getStatus(14) != 101) )
         {
            RcdFound1 = 1 ;
            A1AlumnoId = T000116_A1AlumnoId[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A1AlumnoId", StringUtil.LTrim( StringUtil.Str( (decimal)(A1AlumnoId), 4, 0)));
         }
         /* Load Subordinate Levels */
      }

      protected void ScanNext011( )
      {
         pr_default.readNext(14);
         RcdFound1 = 0 ;
         if ( (pr_default.getStatus(14) != 101) )
         {
            RcdFound1 = 1 ;
            A1AlumnoId = T000116_A1AlumnoId[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A1AlumnoId", StringUtil.LTrim( StringUtil.Str( (decimal)(A1AlumnoId), 4, 0)));
         }
      }

      protected void ScanEnd011( )
      {
      }

      protected void AfterConfirm011( )
      {
         /* After Confirm Rules */
      }

      protected void BeforeInsert011( )
      {
         /* Before Insert Rules */
      }

      protected void BeforeUpdate011( )
      {
         /* Before Update Rules */
      }

      protected void BeforeDelete011( )
      {
         /* Before Delete Rules */
      }

      protected void BeforeComplete011( )
      {
         /* Before Complete Rules */
      }

      protected void BeforeValidate011( )
      {
         /* Before Validate Rules */
      }

      protected void ZM012( short GX_JID )
      {
         if ( ( GX_JID == 7 ) || ( GX_JID == 0 ) )
         {
            if ( StringUtil.StrCmp(Gx_mode, "INS") != 0 )
            {
               Z13AlumnoTutoriasMotivo = T00013_A13AlumnoTutoriasMotivo[0] ;
               Z14AlumnoTutoriasDetalles = T00013_A14AlumnoTutoriasDetalles[0] ;
            }
            else
            {
               Z13AlumnoTutoriasMotivo = A13AlumnoTutoriasMotivo ;
               Z14AlumnoTutoriasDetalles = A14AlumnoTutoriasDetalles ;
            }
         }
         if ( GX_JID == -7 )
         {
            Z1AlumnoId = A1AlumnoId ;
            Z12AlumnoTutoriasFecha = A12AlumnoTutoriasFecha ;
            Z13AlumnoTutoriasMotivo = A13AlumnoTutoriasMotivo ;
            Z14AlumnoTutoriasDetalles = A14AlumnoTutoriasDetalles ;
         }
      }

      protected void standaloneNotModal012( )
      {
      }

      protected void standaloneModal012( )
      {
         if ( StringUtil.StrCmp(Gx_mode, "INS") != 0 )
         {
            edtAlumnoTutoriasFecha_Enabled = 0 ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtAlumnoTutoriasFecha_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtAlumnoTutoriasFecha_Enabled), 5, 0)));
         }
         else
         {
            edtAlumnoTutoriasFecha_Enabled = 1 ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtAlumnoTutoriasFecha_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtAlumnoTutoriasFecha_Enabled), 5, 0)));
         }
      }

      protected void Load012( )
      {
         /* Using cursor T000117 */
         pr_default.execute(15, new Object[] {A1AlumnoId, A12AlumnoTutoriasFecha});
         if ( (pr_default.getStatus(15) != 101) )
         {
            RcdFound2 = 1 ;
            A13AlumnoTutoriasMotivo = T000117_A13AlumnoTutoriasMotivo[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A13AlumnoTutoriasMotivo", A13AlumnoTutoriasMotivo);
            n13AlumnoTutoriasMotivo = T000117_n13AlumnoTutoriasMotivo[0] ;
            A14AlumnoTutoriasDetalles = T000117_A14AlumnoTutoriasDetalles[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A14AlumnoTutoriasDetalles", A14AlumnoTutoriasDetalles);
            n14AlumnoTutoriasDetalles = T000117_n14AlumnoTutoriasDetalles[0] ;
            ZM012( -7) ;
         }
         pr_default.close(15);
         OnLoadActions012( ) ;
      }

      protected void OnLoadActions012( )
      {
      }

      protected void CheckExtendedTable012( )
      {
         Gx_BScreen = 1 ;
         standaloneModal012( ) ;
         if ( ! ( (DateTime.MinValue==A12AlumnoTutoriasFecha) || ( A12AlumnoTutoriasFecha >= context.localUtil.YMDToD( 1753, 1, 1) ) ) )
         {
            GX_msglist.addItem("Campo Alumno Tutorias Fecha fuera de rango", "OutOfRange", 1, "");
            AnyError = 1 ;
         }
      }

      protected void CloseExtendedTableCursors012( )
      {
      }

      protected void enableDisable012( )
      {
      }

      protected void GetKey012( )
      {
         /* Using cursor T000118 */
         pr_default.execute(16, new Object[] {A1AlumnoId, A12AlumnoTutoriasFecha});
         if ( (pr_default.getStatus(16) != 101) )
         {
            RcdFound2 = 1 ;
         }
         else
         {
            RcdFound2 = 0 ;
         }
         pr_default.close(16);
      }

      protected void getByPrimaryKey012( )
      {
         /* Using cursor T00013 */
         pr_default.execute(1, new Object[] {A1AlumnoId, A12AlumnoTutoriasFecha});
         if ( (pr_default.getStatus(1) != 101) )
         {
            ZM012( 7) ;
            RcdFound2 = 1 ;
            InitializeNonKey012( ) ;
            A12AlumnoTutoriasFecha = T00013_A12AlumnoTutoriasFecha[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A12AlumnoTutoriasFecha", context.localUtil.Format(A12AlumnoTutoriasFecha, "99/99/99"));
            A13AlumnoTutoriasMotivo = T00013_A13AlumnoTutoriasMotivo[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A13AlumnoTutoriasMotivo", A13AlumnoTutoriasMotivo);
            n13AlumnoTutoriasMotivo = T00013_n13AlumnoTutoriasMotivo[0] ;
            A14AlumnoTutoriasDetalles = T00013_A14AlumnoTutoriasDetalles[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A14AlumnoTutoriasDetalles", A14AlumnoTutoriasDetalles);
            n14AlumnoTutoriasDetalles = T00013_n14AlumnoTutoriasDetalles[0] ;
            Z1AlumnoId = A1AlumnoId ;
            Z12AlumnoTutoriasFecha = A12AlumnoTutoriasFecha ;
            sMode2 = Gx_mode ;
            Gx_mode = "DSP" ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
            Load012( ) ;
            Gx_mode = sMode2 ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
         }
         else
         {
            RcdFound2 = 0 ;
            InitializeNonKey012( ) ;
            sMode2 = Gx_mode ;
            Gx_mode = "DSP" ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
            standaloneModal012( ) ;
            Gx_mode = sMode2 ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
         }
         pr_default.close(1);
      }

      protected void CheckOptimisticConcurrency012( )
      {
         if ( StringUtil.StrCmp(Gx_mode, "INS") != 0 )
         {
            /* Using cursor T00012 */
            pr_default.execute(0, new Object[] {A1AlumnoId, A12AlumnoTutoriasFecha});
            if ( (pr_default.getStatus(0) == 103) )
            {
               GX_msglist.addItem(context.GetMessage( "GXM_lock", new   object[]  {"AlumnoTutorias"}), "RecordIsLocked", 1, "");
               AnyError = 1 ;
               return  ;
            }
            if ( (pr_default.getStatus(0) == 101) || ( StringUtil.StrCmp(Z13AlumnoTutoriasMotivo, T00012_A13AlumnoTutoriasMotivo[0]) != 0 ) || ( StringUtil.StrCmp(Z14AlumnoTutoriasDetalles, T00012_A14AlumnoTutoriasDetalles[0]) != 0 ) )
            {
               GX_msglist.addItem(context.GetMessage( "GXM_waschg", new   object[]  {"AlumnoTutorias"}), "RecordWasChanged", 1, "");
               AnyError = 1 ;
               return  ;
            }
         }
      }

      protected void Insert012( )
      {
         BeforeValidate012( ) ;
         if ( AnyError == 0 )
         {
            CheckExtendedTable012( ) ;
         }
         if ( AnyError == 0 )
         {
            ZM012( 0) ;
            CheckOptimisticConcurrency012( ) ;
            if ( AnyError == 0 )
            {
               AfterConfirm012( ) ;
               if ( AnyError == 0 )
               {
                  BeforeInsert012( ) ;
                  if ( AnyError == 0 )
                  {
                     /* Using cursor T000119 */
                     pr_default.execute(17, new Object[] {A1AlumnoId, A12AlumnoTutoriasFecha, n13AlumnoTutoriasMotivo, A13AlumnoTutoriasMotivo, n14AlumnoTutoriasDetalles, A14AlumnoTutoriasDetalles});
                     pr_default.close(17);
                     if ( (pr_default.getStatus(17) == 1) )
                     {
                        GX_msglist.addItem(context.GetMessage( "GXM_noupdate"), "DuplicatePrimaryKey", 1, "");
                        AnyError = 1 ;
                     }
                     if ( AnyError == 0 )
                     {
                        /* Start of After( Insert) rules */
                        /* End of After( Insert) rules */
                        if ( AnyError == 0 )
                        {
                           /* Save values for previous() function. */
                        }
                     }
                  }
                  else
                  {
                     GX_msglist.addItem(context.GetMessage( "GXM_unexp"), 1, "");
                     AnyError = 1 ;
                  }
               }
            }
            else
            {
               Load012( ) ;
            }
            EndLevel012( ) ;
         }
         CloseExtendedTableCursors012( ) ;
      }

      protected void Update012( )
      {
         BeforeValidate012( ) ;
         if ( AnyError == 0 )
         {
            CheckExtendedTable012( ) ;
         }
         if ( AnyError == 0 )
         {
            CheckOptimisticConcurrency012( ) ;
            if ( AnyError == 0 )
            {
               AfterConfirm012( ) ;
               if ( AnyError == 0 )
               {
                  BeforeUpdate012( ) ;
                  if ( AnyError == 0 )
                  {
                     /* Using cursor T000120 */
                     pr_default.execute(18, new Object[] {n13AlumnoTutoriasMotivo, A13AlumnoTutoriasMotivo, n14AlumnoTutoriasDetalles, A14AlumnoTutoriasDetalles, A1AlumnoId, A12AlumnoTutoriasFecha});
                     pr_default.close(18);
                     if ( (pr_default.getStatus(18) == 103) )
                     {
                        GX_msglist.addItem(context.GetMessage( "GXM_lock", new   object[]  {"AlumnoTutorias"}), "RecordIsLocked", 1, "");
                        AnyError = 1 ;
                     }
                     DeferredUpdate012( ) ;
                     if ( AnyError == 0 )
                     {
                        /* Start of After( update) rules */
                        /* End of After( update) rules */
                        if ( AnyError == 0 )
                        {
                           getByPrimaryKey012( ) ;
                        }
                     }
                     else
                     {
                        GX_msglist.addItem(context.GetMessage( "GXM_unexp"), 1, "");
                        AnyError = 1 ;
                     }
                  }
               }
            }
            EndLevel012( ) ;
         }
         CloseExtendedTableCursors012( ) ;
      }

      protected void DeferredUpdate012( )
      {
      }

      protected void Delete012( )
      {
         Gx_mode = "DLT" ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
         BeforeValidate012( ) ;
         if ( AnyError == 0 )
         {
            CheckOptimisticConcurrency012( ) ;
         }
         if ( AnyError == 0 )
         {
            OnDeleteControls012( ) ;
            AfterConfirm012( ) ;
            if ( AnyError == 0 )
            {
               BeforeDelete012( ) ;
               if ( AnyError == 0 )
               {
                  /* No cascading delete specified. */
                  /* Using cursor T000121 */
                  pr_default.execute(19, new Object[] {A1AlumnoId, A12AlumnoTutoriasFecha});
                  pr_default.close(19);
                  if ( AnyError == 0 )
                  {
                     /* Start of After( delete) rules */
                     /* End of After( delete) rules */
                  }
                  else
                  {
                     GX_msglist.addItem(context.GetMessage( "GXM_unexp"), 1, "");
                     AnyError = 1 ;
                  }
               }
            }
         }
         sMode2 = Gx_mode ;
         Gx_mode = "DLT" ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
         EndLevel012( ) ;
         Gx_mode = sMode2 ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
      }

      protected void OnDeleteControls012( )
      {
         standaloneModal012( ) ;
         /* No delete mode formulas found. */
      }

      protected void EndLevel012( )
      {
         if ( StringUtil.StrCmp(Gx_mode, "INS") != 0 )
         {
            pr_default.close(0);
         }
         if ( AnyError != 0 )
         {
            context.wjLoc = "" ;
            context.nUserReturn = 0 ;
         }
      }

      protected void ScanStart012( )
      {
         /* Using cursor T000122 */
         pr_default.execute(20, new Object[] {A1AlumnoId});
         RcdFound2 = 0 ;
         if ( (pr_default.getStatus(20) != 101) )
         {
            RcdFound2 = 1 ;
            A12AlumnoTutoriasFecha = T000122_A12AlumnoTutoriasFecha[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A12AlumnoTutoriasFecha", context.localUtil.Format(A12AlumnoTutoriasFecha, "99/99/99"));
         }
         /* Load Subordinate Levels */
      }

      protected void ScanNext012( )
      {
         pr_default.readNext(20);
         RcdFound2 = 0 ;
         if ( (pr_default.getStatus(20) != 101) )
         {
            RcdFound2 = 1 ;
            A12AlumnoTutoriasFecha = T000122_A12AlumnoTutoriasFecha[0] ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A12AlumnoTutoriasFecha", context.localUtil.Format(A12AlumnoTutoriasFecha, "99/99/99"));
         }
      }

      protected void ScanEnd012( )
      {
         pr_default.close(1);
      }

      protected void AfterConfirm012( )
      {
         /* After Confirm Rules */
      }

      protected void BeforeInsert012( )
      {
         /* Before Insert Rules */
      }

      protected void BeforeUpdate012( )
      {
         /* Before Update Rules */
      }

      protected void BeforeDelete012( )
      {
         /* Before Delete Rules */
      }

      protected void BeforeComplete012( )
      {
         /* Before Complete Rules */
      }

      protected void BeforeValidate012( )
      {
         /* Before Validate Rules */
      }

      protected void AddRow012( )
      {
         nGXsfl_100_idx = (short)(nGXsfl_100_idx+1) ;
         sGXsfl_100_idx = StringUtil.PadL( StringUtil.LTrim( StringUtil.Str( (decimal)(nGXsfl_100_idx), 4, 0)), 4, "0") ;
         edtAlumnoTutoriasFecha_Internalname = "ALUMNOTUTORIASFECHA_"+sGXsfl_100_idx ;
         edtAlumnoTutoriasMotivo_Internalname = "ALUMNOTUTORIASMOTIVO_"+sGXsfl_100_idx ;
         edtAlumnoTutoriasDetalles_Internalname = "ALUMNOTUTORIASDETALLES_"+sGXsfl_100_idx ;
         SendRow012( ) ;
      }

      protected void SendRow012( )
      {
         Gridalumno_tutoriasRow = GXWebRow.GetNew(context) ;
         if ( subGridalumno_tutorias_Backcolorstyle == 0 )
         {
            /* None style subfile background logic. */
            subGridalumno_tutorias_Backstyle = 0 ;
            if ( StringUtil.StrCmp(subGridalumno_tutorias_Class, "") != 0 )
            {
               subGridalumno_tutorias_Linesclass = subGridalumno_tutorias_Class+"Odd" ;
            }
         }
         else if ( subGridalumno_tutorias_Backcolorstyle == 1 )
         {
            /* Uniform style subfile background logic. */
            subGridalumno_tutorias_Backstyle = 0 ;
            subGridalumno_tutorias_Backcolor = subGridalumno_tutorias_Allbackcolor ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, "Gridalumno_tutoriasContainerDiv", "Backcolor", StringUtil.LTrim( StringUtil.Str( (decimal)(subGridalumno_tutorias_Backcolor), 9, 0)));
            if ( StringUtil.StrCmp(subGridalumno_tutorias_Class, "") != 0 )
            {
               subGridalumno_tutorias_Linesclass = subGridalumno_tutorias_Class+"Uniform" ;
            }
         }
         else if ( subGridalumno_tutorias_Backcolorstyle == 2 )
         {
            /* Header style subfile background logic. */
            subGridalumno_tutorias_Backstyle = 1 ;
            if ( StringUtil.StrCmp(subGridalumno_tutorias_Class, "") != 0 )
            {
               subGridalumno_tutorias_Linesclass = subGridalumno_tutorias_Class+"Odd" ;
            }
            subGridalumno_tutorias_Backcolor = (int)(0xFFFFFF) ;
            context.httpAjaxContext.ajax_rsp_assign_prop("", false, "Gridalumno_tutoriasContainerDiv", "Backcolor", StringUtil.LTrim( StringUtil.Str( (decimal)(subGridalumno_tutorias_Backcolor), 9, 0)));
         }
         else if ( subGridalumno_tutorias_Backcolorstyle == 3 )
         {
            /* Report style subfile background logic. */
            subGridalumno_tutorias_Backstyle = 1 ;
            if ( ((int)(nGXsfl_100_idx) % (2)) == 0 )
            {
               subGridalumno_tutorias_Backcolor = (int)(0x0) ;
               context.httpAjaxContext.ajax_rsp_assign_prop("", false, "Gridalumno_tutoriasContainerDiv", "Backcolor", StringUtil.LTrim( StringUtil.Str( (decimal)(subGridalumno_tutorias_Backcolor), 9, 0)));
               if ( StringUtil.StrCmp(subGridalumno_tutorias_Class, "") != 0 )
               {
                  subGridalumno_tutorias_Linesclass = subGridalumno_tutorias_Class+"Even" ;
               }
            }
            else
            {
               subGridalumno_tutorias_Backcolor = (int)(0xFFFFFF) ;
               context.httpAjaxContext.ajax_rsp_assign_prop("", false, "Gridalumno_tutoriasContainerDiv", "Backcolor", StringUtil.LTrim( StringUtil.Str( (decimal)(subGridalumno_tutorias_Backcolor), 9, 0)));
               if ( StringUtil.StrCmp(subGridalumno_tutorias_Class, "") != 0 )
               {
                  subGridalumno_tutorias_Linesclass = subGridalumno_tutorias_Class+"Odd" ;
               }
            }
         }
         /* * Property Link not supported in */
         /* * Property Link not supported in */
         /* Subfile cell */
         /* Single line edit */
         TempTags = " gxoch1=\"gx.fn.setControlValue('nIsMod_2_" + sGXsfl_100_idx + "',1);\"  onfocus=\"gx.evt.onfocus(this, 101,'',false,'" + sGXsfl_100_idx + "',100)\"" ;
         ClassString = "Attribute" ;
         StyleString = "" ;
         ROClassString = ClassString ;
         Gridalumno_tutoriasRow.AddColumnProperties("edit", 1, isAjaxCallMode( ), new Object[] {(String)edtAlumnoTutoriasFecha_Internalname,context.localUtil.Format(A12AlumnoTutoriasFecha, "99/99/99"),(String)"",(short)0,(String)"px",(short)17,(String)"",(short)8,(short)-1,(int)edtAlumnoTutoriasFecha_Enabled,(short)1,(short)0,(short)0,(String)"",(String)"",(String)StyleString,(String)ClassString,(String)ROClassString,context.localUtil.Format( A12AlumnoTutoriasFecha, "99/99/99"),TempTags+" onchange=\"gx.evt.onchange(this)\" "+" onblur=\""+"gx.date.valid_date(this, 8,'DMY',0,24,'spa',false,0);"+";gx.evt.onblur(101);\"",(short)0,(String)edtAlumnoTutoriasFecha_Jsonclick,(String)"",(short)100,(short)1,(short)-1,(bool)true,(String)"right"});
         /* Subfile cell */
         /* Single line edit */
         TempTags = " gxoch1=\"gx.fn.setControlValue('nIsMod_2_" + sGXsfl_100_idx + "',1);\"  onfocus=\"gx.evt.onfocus(this, 102,'',false,'" + sGXsfl_100_idx + "',100)\"" ;
         ClassString = "Attribute" ;
         StyleString = "" ;
         ROClassString = ClassString ;
         Gridalumno_tutoriasRow.AddColumnProperties("edit", 1, isAjaxCallMode( ), new Object[] {(String)edtAlumnoTutoriasMotivo_Internalname,StringUtil.RTrim( A13AlumnoTutoriasMotivo),(String)"",(short)0,(String)"px",(short)17,(String)"",(short)100,(short)-1,(int)edtAlumnoTutoriasMotivo_Enabled,(short)0,(short)0,(short)0,(String)"",(String)"",(String)StyleString,(String)ClassString,(String)ROClassString,StringUtil.RTrim( context.localUtil.Format( A13AlumnoTutoriasMotivo, "")),TempTags+" onchange=\"gx.evt.onchange(this)\" "+" onblur=\""+""+";gx.evt.onblur(102);\"",(short)0,(String)edtAlumnoTutoriasMotivo_Jsonclick,(String)"",(short)100,(short)1,(short)-1,(bool)true,(String)"left"});
         /* Subfile cell */
         /* Single line edit */
         TempTags = " gxoch1=\"gx.fn.setControlValue('nIsMod_2_" + sGXsfl_100_idx + "',1);\"  onfocus=\"gx.evt.onfocus(this, 103,'',false,'" + sGXsfl_100_idx + "',100)\"" ;
         ClassString = "Attribute" ;
         StyleString = "" ;
         ROClassString = ClassString ;
         Gridalumno_tutoriasRow.AddColumnProperties("edit", 1, isAjaxCallMode( ), new Object[] {(String)edtAlumnoTutoriasDetalles_Internalname,StringUtil.RTrim( A14AlumnoTutoriasDetalles),(String)"",(short)0,(String)"px",(short)17,(String)"",(short)650,(short)-1,(int)edtAlumnoTutoriasDetalles_Enabled,(short)0,(short)0,(short)0,(String)"",(String)"",(String)StyleString,(String)ClassString,(String)ROClassString,StringUtil.RTrim( context.localUtil.Format( A14AlumnoTutoriasDetalles, "")),TempTags+" onchange=\"gx.evt.onchange(this)\" "+" onblur=\""+""+";gx.evt.onblur(103);\"",(short)0,(String)edtAlumnoTutoriasDetalles_Jsonclick,(String)"",(short)100,(short)1,(short)-1,(bool)true,(String)"left"});
         context.httpAjaxContext.ajax_sending_grid_row(Gridalumno_tutoriasRow);
         GXCCtl = "Z12AlumnoTutoriasFecha_" + sGXsfl_100_idx ;
         GxWebStd.gx_hidden_field( context, GXCCtl, context.localUtil.DToC( Z12AlumnoTutoriasFecha, 0, "/"));
         GXCCtl = "Z13AlumnoTutoriasMotivo_" + sGXsfl_100_idx ;
         GxWebStd.gx_hidden_field( context, GXCCtl, StringUtil.RTrim( Z13AlumnoTutoriasMotivo));
         GXCCtl = "Z14AlumnoTutoriasDetalles_" + sGXsfl_100_idx ;
         GxWebStd.gx_hidden_field( context, GXCCtl, StringUtil.RTrim( Z14AlumnoTutoriasDetalles));
         GXCCtl = "nRcdDeleted_2_" + sGXsfl_100_idx ;
         GxWebStd.gx_hidden_field( context, GXCCtl, StringUtil.LTrim( StringUtil.NToC( (decimal)(nRcdDeleted_2), 4, 0, ",", "")));
         GXCCtl = "nRcdExists_2_" + sGXsfl_100_idx ;
         GxWebStd.gx_hidden_field( context, GXCCtl, StringUtil.LTrim( StringUtil.NToC( (decimal)(nRcdExists_2), 4, 0, ",", "")));
         GXCCtl = "nIsMod_2_" + sGXsfl_100_idx ;
         GxWebStd.gx_hidden_field( context, GXCCtl, StringUtil.LTrim( StringUtil.NToC( (decimal)(nIsMod_2), 4, 0, ",", "")));
         GXCCtl = "vMODE_" + sGXsfl_100_idx ;
         GxWebStd.gx_hidden_field( context, GXCCtl, StringUtil.RTrim( Gx_mode));
         GXCCtl = "vALUMNOID_" + sGXsfl_100_idx ;
         GxWebStd.gx_hidden_field( context, GXCCtl, StringUtil.LTrim( StringUtil.NToC( (decimal)(AV7AlumnoId), 4, 0, ",", "")));
         GxWebStd.gx_hidden_field( context, "ALUMNOTUTORIASFECHA_"+sGXsfl_100_idx+"Enabled", StringUtil.LTrim( StringUtil.NToC( (decimal)(edtAlumnoTutoriasFecha_Enabled), 5, 0, ".", "")));
         GxWebStd.gx_hidden_field( context, "ALUMNOTUTORIASMOTIVO_"+sGXsfl_100_idx+"Enabled", StringUtil.LTrim( StringUtil.NToC( (decimal)(edtAlumnoTutoriasMotivo_Enabled), 5, 0, ".", "")));
         GxWebStd.gx_hidden_field( context, "ALUMNOTUTORIASDETALLES_"+sGXsfl_100_idx+"Enabled", StringUtil.LTrim( StringUtil.NToC( (decimal)(edtAlumnoTutoriasDetalles_Enabled), 5, 0, ".", "")));
         context.httpAjaxContext.ajax_sending_grid_row(null);
         Gridalumno_tutoriasContainer.AddRow(Gridalumno_tutoriasRow);
      }

      protected void ReadRow012( )
      {
         nGXsfl_100_idx = (short)(nGXsfl_100_idx+1) ;
         sGXsfl_100_idx = StringUtil.PadL( StringUtil.LTrim( StringUtil.Str( (decimal)(nGXsfl_100_idx), 4, 0)), 4, "0") ;
         edtAlumnoTutoriasFecha_Internalname = "ALUMNOTUTORIASFECHA_"+sGXsfl_100_idx ;
         edtAlumnoTutoriasMotivo_Internalname = "ALUMNOTUTORIASMOTIVO_"+sGXsfl_100_idx ;
         edtAlumnoTutoriasDetalles_Internalname = "ALUMNOTUTORIASDETALLES_"+sGXsfl_100_idx ;
         edtAlumnoTutoriasFecha_Enabled = (int)(context.localUtil.CToN( cgiGet( "ALUMNOTUTORIASFECHA_"+sGXsfl_100_idx+"Enabled"), ",", ".")) ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtAlumnoTutoriasFecha_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtAlumnoTutoriasFecha_Enabled), 5, 0)));
         edtAlumnoTutoriasMotivo_Enabled = (int)(context.localUtil.CToN( cgiGet( "ALUMNOTUTORIASMOTIVO_"+sGXsfl_100_idx+"Enabled"), ",", ".")) ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtAlumnoTutoriasMotivo_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtAlumnoTutoriasMotivo_Enabled), 5, 0)));
         edtAlumnoTutoriasDetalles_Enabled = (int)(context.localUtil.CToN( cgiGet( "ALUMNOTUTORIASDETALLES_"+sGXsfl_100_idx+"Enabled"), ",", ".")) ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtAlumnoTutoriasDetalles_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtAlumnoTutoriasDetalles_Enabled), 5, 0)));
         if ( context.localUtil.VCDate( cgiGet( edtAlumnoTutoriasFecha_Internalname), 2) == 0 )
         {
            GX_msglist.addItem(context.GetMessage( "GXM_faildate", new   object[]  {"Alumno Tutorias Fecha"}), 1, "ALUMNOTUTORIASFECHA");
            AnyError = 1 ;
            GX_FocusControl = edtAlumnoTutoriasFecha_Internalname ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "GX_FocusControl", GX_FocusControl);
            wbErr = true ;
            A12AlumnoTutoriasFecha = DateTime.MinValue ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A12AlumnoTutoriasFecha", context.localUtil.Format(A12AlumnoTutoriasFecha, "99/99/99"));
         }
         else
         {
            A12AlumnoTutoriasFecha = context.localUtil.CToD( cgiGet( edtAlumnoTutoriasFecha_Internalname), 2) ;
            context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A12AlumnoTutoriasFecha", context.localUtil.Format(A12AlumnoTutoriasFecha, "99/99/99"));
         }
         A13AlumnoTutoriasMotivo = cgiGet( edtAlumnoTutoriasMotivo_Internalname) ;
         n13AlumnoTutoriasMotivo = false ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A13AlumnoTutoriasMotivo", A13AlumnoTutoriasMotivo);
         n13AlumnoTutoriasMotivo = (String.IsNullOrEmpty(StringUtil.RTrim( A13AlumnoTutoriasMotivo)) ? true : false) ;
         A14AlumnoTutoriasDetalles = cgiGet( edtAlumnoTutoriasDetalles_Internalname) ;
         n14AlumnoTutoriasDetalles = false ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A14AlumnoTutoriasDetalles", A14AlumnoTutoriasDetalles);
         n14AlumnoTutoriasDetalles = (String.IsNullOrEmpty(StringUtil.RTrim( A14AlumnoTutoriasDetalles)) ? true : false) ;
         GXCCtl = "Z12AlumnoTutoriasFecha_" + sGXsfl_100_idx ;
         Z12AlumnoTutoriasFecha = context.localUtil.CToD( cgiGet( GXCCtl), 0) ;
         GXCCtl = "Z13AlumnoTutoriasMotivo_" + sGXsfl_100_idx ;
         Z13AlumnoTutoriasMotivo = cgiGet( GXCCtl) ;
         GXCCtl = "Z14AlumnoTutoriasDetalles_" + sGXsfl_100_idx ;
         Z14AlumnoTutoriasDetalles = cgiGet( GXCCtl) ;
         GXCCtl = "nRcdDeleted_2_" + sGXsfl_100_idx ;
         nRcdDeleted_2 = (short)(context.localUtil.CToN( cgiGet( GXCCtl), ",", ".")) ;
         GXCCtl = "nRcdExists_2_" + sGXsfl_100_idx ;
         nRcdExists_2 = (short)(context.localUtil.CToN( cgiGet( GXCCtl), ",", ".")) ;
         GXCCtl = "nIsMod_2_" + sGXsfl_100_idx ;
         nIsMod_2 = (short)(context.localUtil.CToN( cgiGet( GXCCtl), ",", ".")) ;
         GXCCtl = "vALUMNOID_" + sGXsfl_100_idx ;
         AV7AlumnoId = (short)(context.localUtil.CToN( cgiGet( GXCCtl), ",", ".")) ;
      }

      protected void assign_properties_default( )
      {
         defedtAlumnoTutoriasFecha_Enabled = edtAlumnoTutoriasFecha_Enabled ;
      }

      protected void ConfirmValues010( )
      {
         nGXsfl_100_idx = 0 ;
         sGXsfl_100_idx = StringUtil.PadL( StringUtil.LTrim( StringUtil.Str( (decimal)(nGXsfl_100_idx), 4, 0)), 4, "0") ;
         edtAlumnoTutoriasFecha_Internalname = "ALUMNOTUTORIASFECHA_"+sGXsfl_100_idx ;
         edtAlumnoTutoriasMotivo_Internalname = "ALUMNOTUTORIASMOTIVO_"+sGXsfl_100_idx ;
         edtAlumnoTutoriasDetalles_Internalname = "ALUMNOTUTORIASDETALLES_"+sGXsfl_100_idx ;
         while ( nGXsfl_100_idx < nRC_Gridalumno_tutorias )
         {
            nGXsfl_100_idx = (short)(nGXsfl_100_idx+1) ;
            sGXsfl_100_idx = StringUtil.PadL( StringUtil.LTrim( StringUtil.Str( (decimal)(nGXsfl_100_idx), 4, 0)), 4, "0") ;
            edtAlumnoTutoriasFecha_Internalname = "ALUMNOTUTORIASFECHA_"+sGXsfl_100_idx ;
            edtAlumnoTutoriasMotivo_Internalname = "ALUMNOTUTORIASMOTIVO_"+sGXsfl_100_idx ;
            edtAlumnoTutoriasDetalles_Internalname = "ALUMNOTUTORIASDETALLES_"+sGXsfl_100_idx ;
            ChangePostValue( "Z12AlumnoTutoriasFecha_"+sGXsfl_100_idx, cgiGet( "ZT_"+"Z12AlumnoTutoriasFecha_"+sGXsfl_100_idx)) ;
            DeletePostValue( "ZT_"+"Z12AlumnoTutoriasFecha_"+sGXsfl_100_idx) ;
            ChangePostValue( "Z13AlumnoTutoriasMotivo_"+sGXsfl_100_idx, cgiGet( "ZT_"+"Z13AlumnoTutoriasMotivo_"+sGXsfl_100_idx)) ;
            DeletePostValue( "ZT_"+"Z13AlumnoTutoriasMotivo_"+sGXsfl_100_idx) ;
            ChangePostValue( "Z14AlumnoTutoriasDetalles_"+sGXsfl_100_idx, cgiGet( "ZT_"+"Z14AlumnoTutoriasDetalles_"+sGXsfl_100_idx)) ;
            DeletePostValue( "ZT_"+"Z14AlumnoTutoriasDetalles_"+sGXsfl_100_idx) ;
         }
      }

      public override void RenderHtmlHeaders( )
      {
         GxWebStd.gx_html_headers( context, 0, "", "", Form.Meta, Form.Metaequiv, "IE=EmulateIE7");
      }

      public override void RenderHtmlOpenForm( )
      {
         context.WriteHtmlText( "<title>") ;
         context.WriteHtmlText( Form.Caption) ;
         context.WriteHtmlTextNl( "</title>") ;
         if ( StringUtil.Len( sDynURL) > 0 )
         {
            context.WriteHtmlText( "<BASE href=\""+sDynURL+"\" />") ;
         }
         define_styles( ) ;
         MasterPageObj.master_styles();
         if ( ! context.isSmartDevice( ) )
         {
            context.AddJavascriptSource("gxgral.js", "?42940");
            context.AddJavascriptSource("gxcfg.js", "?42940");
         }
         else
         {
            context.AddJavascriptSource("gxapiSD.js", "?42940");
            context.AddJavascriptSource("gxfxSD.js", "?42940");
            context.AddJavascriptSource("gxtypesSD.js", "?42940");
            context.AddJavascriptSource("gxpopupSD.js", "?42940");
            context.AddJavascriptSource("gxfrmutlSD.js", "?42940");
            context.AddJavascriptSource("gxgridSD.js", "?42940");
            context.AddJavascriptSource("JavaScripTableSD.js", "?42940");
            context.AddJavascriptSource("rijndaelSD.js", "?42940");
            context.AddJavascriptSource("gxgralSD.js", "?42940");
            context.AddJavascriptSource("gxcfg.js", "?42940");
         }
         context.AddJavascriptSource("calendar.js", "?42940");
         context.AddJavascriptSource("calendar-setup.js", "?42940");
         context.AddJavascriptSource("calendar-es.js", "?42940");
         context.WriteHtmlText( Form.Headerrawhtml) ;
         context.CloseHtmlHeader();
         FormProcess = " onkeyup=\"gx.evt.onkeyup(event)\" onkeypress=\"gx.evt.onkeypress(event,true,false)\" onkeydown=\"gx.evt.onkeypress(null,true,false)\"" ;
         context.WriteHtmlText( "<body") ;
         if ( ! ( String.IsNullOrEmpty(StringUtil.RTrim( Form.Background)) ) )
         {
            context.WriteHtmlText( " background=\""+context.convertURL( Form.Background)+"\"") ;
         }
         context.WriteHtmlText( " "+"class=\"Form\""+" "+" style=\"-moz-opacity:0;opacity:0;"+"background-color:"+context.BuildHTMLColor( Form.Backcolor)+"\""+FormProcess+">") ;
         context.skipLines(1);
         context.WriteHtmlTextNl( "<form id=\"MAINFORM\" onsubmit=\"try{return gx.csv.validForm()}catch(e){return true;}\" name=\"MAINFORM\" method=\"post\" action=\""+formatLink("alumno.aspx") + "?" + UrlEncode(StringUtil.RTrim(Gx_mode)) + "," + UrlEncode("" +AV7AlumnoId)+"\" class=\""+"Form"+"\">") ;
         GxWebStd.gx_hidden_field( context, "_EventName", "");
         GxWebStd.gx_hidden_field( context, "_EventGridId", "");
         GxWebStd.gx_hidden_field( context, "_EventRowId", "");
      }

      public override void RenderHtmlCloseForm( )
      {
         /* Send hidden variables. */
         /* Send saved values. */
         GxWebStd.gx_hidden_field( context, "Z1AlumnoId", StringUtil.LTrim( StringUtil.NToC( (decimal)(Z1AlumnoId), 4, 0, ",", "")));
         GxWebStd.gx_hidden_field( context, "Z2AlumnoNombre", StringUtil.RTrim( Z2AlumnoNombre));
         GxWebStd.gx_hidden_field( context, "Z3AlumnoApellidos", StringUtil.RTrim( Z3AlumnoApellidos));
         GxWebStd.gx_hidden_field( context, "Z5AlumnoNIF", StringUtil.RTrim( Z5AlumnoNIF));
         GxWebStd.gx_hidden_field( context, "Z6AlumnoFechaNacimiento", context.localUtil.DToC( Z6AlumnoFechaNacimiento, 0, "/"));
         GxWebStd.gx_hidden_field( context, "Z30AlumnoEmail", StringUtil.RTrim( Z30AlumnoEmail));
         GxWebStd.gx_hidden_field( context, "Z31AlumnoWeb", StringUtil.RTrim( Z31AlumnoWeb));
         GxWebStd.gx_hidden_field( context, "Z34AlumnoTelefono", StringUtil.RTrim( Z34AlumnoTelefono));
         GxWebStd.gx_hidden_field( context, "Z9AlumnoNombrePadre", StringUtil.RTrim( Z9AlumnoNombrePadre));
         GxWebStd.gx_hidden_field( context, "Z10AlumnoNombreMadre", StringUtil.RTrim( Z10AlumnoNombreMadre));
         GxWebStd.gx_hidden_field( context, "Z11AlumnoObservaciones", StringUtil.RTrim( Z11AlumnoObservaciones));
         GxWebStd.gx_hidden_field( context, "IsConfirmed", StringUtil.LTrim( StringUtil.NToC( (decimal)(IsConfirmed), 4, 0, ",", "")));
         GxWebStd.gx_hidden_field( context, "IsModified", StringUtil.LTrim( StringUtil.NToC( (decimal)(IsModified), 4, 0, ",", "")));
         GxWebStd.gx_hidden_field( context, "Mode", StringUtil.RTrim( Gx_mode));
         GxWebStd.gx_hidden_field( context, "nRC_Gridalumno_tutorias", StringUtil.LTrim( StringUtil.NToC( (decimal)(nGXsfl_100_idx), 4, 0, ",", "")));
         GxWebStd.gx_hidden_field( context, "vALUMNOID", StringUtil.LTrim( StringUtil.NToC( (decimal)(AV7AlumnoId), 4, 0, ",", "")));
         GxWebStd.gx_hidden_field( context, "vPGMNAME", StringUtil.RTrim( AV12Pgmname));
         GxWebStd.gx_hidden_field( context, "vMODE", StringUtil.RTrim( Gx_mode));
         GxWebStd.gx_hidden_field( context, "GX_FocusControl", GX_FocusControl);
         SendAjaxEncryptionKey();
         SendComponentObjects();
         SendServerCommands();
         SendState();
         context.WriteHtmlTextNl( "</form>") ;
         include_jscripts( ) ;
      }

      public override short ExecuteStartEvent( )
      {
         standaloneStartup( ) ;
         gxajaxcallmode = (short)((isAjaxCallMode( ) ? 1 : 0)) ;
         return gxajaxcallmode ;
      }

      public override void RenderHtmlContent( )
      {
         Draw( ) ;
      }

      public override void DispatchEvents( )
      {
         Process( ) ;
      }

      public override bool HasEnterEvent( )
      {
         return true ;
      }

      public override String GetPgmname( )
      {
         return "Alumno" ;
      }

      public override String GetPgmdesc( )
      {
         return "Alumno" ;
      }

      public override GXWebForm GetForm( )
      {
         return Form ;
      }

      public override String GetSelfLink( )
      {
         return formatLink("alumno.aspx") + "?" + UrlEncode(StringUtil.RTrim(Gx_mode)) + "," + UrlEncode("" +AV7AlumnoId) ;
      }

      protected void InitializeNonKey011( )
      {
         A4AlumnoNombreCompleto = "" ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A4AlumnoNombreCompleto", A4AlumnoNombreCompleto);
         A2AlumnoNombre = "" ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A2AlumnoNombre", A2AlumnoNombre);
         A3AlumnoApellidos = "" ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A3AlumnoApellidos", A3AlumnoApellidos);
         A5AlumnoNIF = "" ;
         n5AlumnoNIF = false ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A5AlumnoNIF", A5AlumnoNIF);
         n5AlumnoNIF = (String.IsNullOrEmpty(StringUtil.RTrim( A5AlumnoNIF)) ? true : false) ;
         A6AlumnoFechaNacimiento = DateTime.MinValue ;
         n6AlumnoFechaNacimiento = false ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A6AlumnoFechaNacimiento", context.localUtil.Format(A6AlumnoFechaNacimiento, "99/99/99"));
         n6AlumnoFechaNacimiento = ((DateTime.MinValue==A6AlumnoFechaNacimiento) ? true : false) ;
         A30AlumnoEmail = "" ;
         n30AlumnoEmail = false ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A30AlumnoEmail", A30AlumnoEmail);
         n30AlumnoEmail = (String.IsNullOrEmpty(StringUtil.RTrim( A30AlumnoEmail)) ? true : false) ;
         A31AlumnoWeb = "" ;
         n31AlumnoWeb = false ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A31AlumnoWeb", A31AlumnoWeb);
         n31AlumnoWeb = (String.IsNullOrEmpty(StringUtil.RTrim( A31AlumnoWeb)) ? true : false) ;
         A34AlumnoTelefono = "" ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A34AlumnoTelefono", A34AlumnoTelefono);
         A9AlumnoNombrePadre = "" ;
         n9AlumnoNombrePadre = false ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A9AlumnoNombrePadre", A9AlumnoNombrePadre);
         n9AlumnoNombrePadre = (String.IsNullOrEmpty(StringUtil.RTrim( A9AlumnoNombrePadre)) ? true : false) ;
         A10AlumnoNombreMadre = "" ;
         n10AlumnoNombreMadre = false ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A10AlumnoNombreMadre", A10AlumnoNombreMadre);
         n10AlumnoNombreMadre = (String.IsNullOrEmpty(StringUtil.RTrim( A10AlumnoNombreMadre)) ? true : false) ;
         A11AlumnoObservaciones = "" ;
         n11AlumnoObservaciones = false ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A11AlumnoObservaciones", A11AlumnoObservaciones);
         n11AlumnoObservaciones = (String.IsNullOrEmpty(StringUtil.RTrim( A11AlumnoObservaciones)) ? true : false) ;
      }

      protected void InitAll011( )
      {
         A1AlumnoId = 0 ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A1AlumnoId", StringUtil.LTrim( StringUtil.Str( (decimal)(A1AlumnoId), 4, 0)));
         InitializeNonKey011( ) ;
      }

      protected void StandaloneModalInsert( )
      {
      }

      protected void InitializeNonKey012( )
      {
         A13AlumnoTutoriasMotivo = "" ;
         n13AlumnoTutoriasMotivo = false ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A13AlumnoTutoriasMotivo", A13AlumnoTutoriasMotivo);
         A14AlumnoTutoriasDetalles = "" ;
         n14AlumnoTutoriasDetalles = false ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A14AlumnoTutoriasDetalles", A14AlumnoTutoriasDetalles);
      }

      protected void InitAll012( )
      {
         A12AlumnoTutoriasFecha = DateTime.MinValue ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "A12AlumnoTutoriasFecha", context.localUtil.Format(A12AlumnoTutoriasFecha, "99/99/99"));
         InitializeNonKey012( ) ;
      }

      protected void StandaloneModalInsert012( )
      {
      }

      protected void define_styles( )
      {
         AddStyleSheetFile("calendar-system.css", "?134120");
         AddThemeStyleSheetFile("", "Classic.css", "?1033786");
         idxLst = 1 ;
         while ( idxLst <= Form.Jscriptsrc.Count )
         {
            context.AddJavascriptSource(StringUtil.RTrim( Form.Jscriptsrc.Item(idxLst)), "?1035388");
            idxLst = (int)(idxLst+1) ;
         }
         /* End function define_styles */
      }

      protected void include_jscripts( )
      {
         context.AddJavascriptSource("messages.spa.js", "?42940");
         context.AddJavascriptSource("alumno.js", "?1035388");
         /* End function include_jscripts */
      }

      protected void init_level_properties2( )
      {
         edtAlumnoTutoriasFecha_Enabled = defedtAlumnoTutoriasFecha_Enabled ;
         context.httpAjaxContext.ajax_rsp_assign_prop("", false, edtAlumnoTutoriasFecha_Internalname, "Enabled", StringUtil.LTrim( StringUtil.Str( (decimal)(edtAlumnoTutoriasFecha_Enabled), 5, 0)));
      }

      protected void init_default_properties( )
      {
         imgBtn_first_Internalname = "BTN_FIRST" ;
         imgBtn_first_separator_Internalname = "BTN_FIRST_SEPARATOR" ;
         imgBtn_previous_Internalname = "BTN_PREVIOUS" ;
         imgBtn_previous_separator_Internalname = "BTN_PREVIOUS_SEPARATOR" ;
         imgBtn_next_Internalname = "BTN_NEXT" ;
         imgBtn_next_separator_Internalname = "BTN_NEXT_SEPARATOR" ;
         imgBtn_last_Internalname = "BTN_LAST" ;
         imgBtn_last_separator_Internalname = "BTN_LAST_SEPARATOR" ;
         imgBtn_select_Internalname = "BTN_SELECT" ;
         imgBtn_select_separator_Internalname = "BTN_SELECT_SEPARATOR" ;
         imgBtn_enter2_Internalname = "BTN_ENTER2" ;
         imgBtn_enter2_separator_Internalname = "BTN_ENTER2_SEPARATOR" ;
         imgBtn_cancel2_Internalname = "BTN_CANCEL2" ;
         imgBtn_cancel2_separator_Internalname = "BTN_CANCEL2_SEPARATOR" ;
         imgBtn_delete2_Internalname = "BTN_DELETE2" ;
         imgBtn_delete2_separator_Internalname = "BTN_DELETE2_SEPARATOR" ;
         tblTabletoolbar_Internalname = "TABLETOOLBAR" ;
         lblTextblockalumnoid_Internalname = "TEXTBLOCKALUMNOID" ;
         edtAlumnoId_Internalname = "ALUMNOID" ;
         lblTextblockalumnonombre_Internalname = "TEXTBLOCKALUMNONOMBRE" ;
         edtAlumnoNombre_Internalname = "ALUMNONOMBRE" ;
         lblTextblockalumnoapellidos_Internalname = "TEXTBLOCKALUMNOAPELLIDOS" ;
         edtAlumnoApellidos_Internalname = "ALUMNOAPELLIDOS" ;
         lblTextblockalumnonombrecompleto_Internalname = "TEXTBLOCKALUMNONOMBRECOMPLETO" ;
         edtAlumnoNombreCompleto_Internalname = "ALUMNONOMBRECOMPLETO" ;
         lblTextblockalumnonif_Internalname = "TEXTBLOCKALUMNONIF" ;
         edtAlumnoNIF_Internalname = "ALUMNONIF" ;
         lblTextblockalumnofechanacimiento_Internalname = "TEXTBLOCKALUMNOFECHANACIMIENTO" ;
         edtAlumnoFechaNacimiento_Internalname = "ALUMNOFECHANACIMIENTO" ;
         lblTextblockalumnoemail_Internalname = "TEXTBLOCKALUMNOEMAIL" ;
         edtAlumnoEmail_Internalname = "ALUMNOEMAIL" ;
         lblTextblockalumnoweb_Internalname = "TEXTBLOCKALUMNOWEB" ;
         edtAlumnoWeb_Internalname = "ALUMNOWEB" ;
         lblTextblockalumnotelefono_Internalname = "TEXTBLOCKALUMNOTELEFONO" ;
         edtAlumnoTelefono_Internalname = "ALUMNOTELEFONO" ;
         lblTextblockalumnonombrepadre_Internalname = "TEXTBLOCKALUMNONOMBREPADRE" ;
         edtAlumnoNombrePadre_Internalname = "ALUMNONOMBREPADRE" ;
         lblTextblockalumnonombremadre_Internalname = "TEXTBLOCKALUMNONOMBREMADRE" ;
         edtAlumnoNombreMadre_Internalname = "ALUMNONOMBREMADRE" ;
         lblTextblockalumnoobservaciones_Internalname = "TEXTBLOCKALUMNOOBSERVACIONES" ;
         edtAlumnoObservaciones_Internalname = "ALUMNOOBSERVACIONES" ;
         lblTitletutorias_Internalname = "TITLETUTORIAS" ;
         tblTable3_Internalname = "TABLE3" ;
         tblTable2_Internalname = "TABLE2" ;
         bttBtn_enter_Internalname = "BTN_ENTER" ;
         bttBtn_cancel_Internalname = "BTN_CANCEL" ;
         bttBtn_delete_Internalname = "BTN_DELETE" ;
         tblTable1_Internalname = "TABLE1" ;
         grpGroupdata_Internalname = "GROUPDATA" ;
         tblTablemain_Internalname = "TABLEMAIN" ;
         Form.Internalname = "FORM" ;
         subGridalumno_tutorias_Internalname = "GRIDALUMNO_TUTORIAS" ;
      }

      public override void initialize_properties( )
      {
         init_default_properties( ) ;
         Form.Headerrawhtml = "" ;
         Form.Background = "" ;
         Form.Backcolor = (int)(0xFFFFFF) ;
         Form.Caption = "Alumno" ;
         edtAlumnoTutoriasDetalles_Jsonclick = "" ;
         edtAlumnoTutoriasMotivo_Jsonclick = "" ;
         edtAlumnoTutoriasFecha_Jsonclick = "" ;
         subGridalumno_tutorias_Class = "Grid" ;
         imgBtn_delete2_separator_Visible = 1 ;
         imgBtn_delete2_Enabled = 1 ;
         imgBtn_delete2_Visible = 1 ;
         imgBtn_cancel2_separator_Visible = 1 ;
         imgBtn_cancel2_Visible = 1 ;
         imgBtn_enter2_separator_Visible = 1 ;
         imgBtn_enter2_Enabled = 1 ;
         imgBtn_enter2_Visible = 1 ;
         imgBtn_select_separator_Visible = 1 ;
         imgBtn_select_Visible = 1 ;
         imgBtn_last_separator_Visible = 1 ;
         imgBtn_last_Visible = 1 ;
         imgBtn_next_separator_Visible = 1 ;
         imgBtn_next_Visible = 1 ;
         imgBtn_previous_separator_Visible = 1 ;
         imgBtn_previous_Visible = 1 ;
         imgBtn_first_separator_Visible = 1 ;
         imgBtn_first_Visible = 1 ;
         edtAlumnoTutoriasDetalles_Enabled = 1 ;
         edtAlumnoTutoriasMotivo_Enabled = 1 ;
         edtAlumnoTutoriasFecha_Enabled = 1 ;
         subGridalumno_tutorias_Backcolorstyle = 2 ;
         edtAlumnoObservaciones_Enabled = 1 ;
         edtAlumnoNombreMadre_Enabled = 1 ;
         edtAlumnoNombrePadre_Enabled = 1 ;
         edtAlumnoTelefono_Jsonclick = "" ;
         edtAlumnoTelefono_Enabled = 1 ;
         edtAlumnoWeb_Jsonclick = "" ;
         edtAlumnoWeb_Enabled = 1 ;
         edtAlumnoEmail_Jsonclick = "" ;
         edtAlumnoEmail_Enabled = 1 ;
         edtAlumnoFechaNacimiento_Jsonclick = "" ;
         edtAlumnoFechaNacimiento_Enabled = 1 ;
         edtAlumnoNIF_Jsonclick = "" ;
         edtAlumnoNIF_Enabled = 1 ;
         edtAlumnoNombreCompleto_Enabled = 0 ;
         edtAlumnoApellidos_Jsonclick = "" ;
         edtAlumnoApellidos_Enabled = 1 ;
         edtAlumnoNombre_Jsonclick = "" ;
         edtAlumnoNombre_Enabled = 1 ;
         edtAlumnoId_Jsonclick = "" ;
         edtAlumnoId_Enabled = 0 ;
         bttBtn_delete_Visible = 1 ;
         bttBtn_cancel_Visible = 1 ;
         bttBtn_enter_Visible = 1 ;
         context.GX_msglist.DisplayMode = 1 ;
      }

      protected void dynload_actions( )
      {
         /* End function dynload_actions */
      }

      protected void gxnrGridalumno_tutorias_newrow( short nRC_Gridalumno_tutorias ,
                                                     short nGXsfl_100_idx ,
                                                     String sGXsfl_100_idx )
      {
         GxWebStd.set_html_headers( context, 0, "", "");
         Gx_mode = "INS" ;
         context.httpAjaxContext.ajax_rsp_assign_attri("", false, "Gx_mode", Gx_mode);
         edtAlumnoTutoriasFecha_Internalname = "ALUMNOTUTORIASFECHA_"+sGXsfl_100_idx ;
         edtAlumnoTutoriasMotivo_Internalname = "ALUMNOTUTORIASMOTIVO_"+sGXsfl_100_idx ;
         edtAlumnoTutoriasDetalles_Internalname = "ALUMNOTUTORIASDETALLES_"+sGXsfl_100_idx ;
         while ( nGXsfl_100_idx <= nRC_Gridalumno_tutorias )
         {
            standaloneNotModal( ) ;
            standaloneModal( ) ;
            standaloneNotModal012( ) ;
            standaloneModal012( ) ;
            dynload_actions( ) ;
            SendRow012( ) ;
            nGXsfl_100_idx = (short)(nGXsfl_100_idx+1) ;
            sGXsfl_100_idx = StringUtil.PadL( StringUtil.LTrim( StringUtil.Str( (decimal)(nGXsfl_100_idx), 4, 0)), 4, "0") ;
            edtAlumnoTutoriasFecha_Internalname = "ALUMNOTUTORIASFECHA_"+sGXsfl_100_idx ;
            edtAlumnoTutoriasMotivo_Internalname = "ALUMNOTUTORIASMOTIVO_"+sGXsfl_100_idx ;
            edtAlumnoTutoriasDetalles_Internalname = "ALUMNOTUTORIASDETALLES_"+sGXsfl_100_idx ;
         }
         context.GX_webresponse.AddString(Gridalumno_tutoriasContainer.ToJavascriptSource());
         /* End function gxnrGridalumno_tutorias_newrow */
      }

      protected void cleanup( )
      {
         flushBuffer();
         CloseOpenCursors();
         if ( IsMain )
         {
            context.CloseConnections() ;
         }
      }

      protected void CloseOpenCursors( )
      {
         pr_default.close(20);
         pr_default.close(14);
         pr_default.close(7);
         pr_default.close(6);
      }

      public override void initialize( )
      {
         sPrefix = "" ;
         wcpOGx_mode = "" ;
         scmdbuf = "" ;
         gxfirstwebparm = "" ;
         gxfirstwebparm_bkp = "" ;
         PreviousTooltip = "" ;
         PreviousCaption = "" ;
         Form = new GXWebForm();
         GX_FocusControl = "" ;
         sStyleString = "" ;
         ClassString = "" ;
         StyleString = "" ;
         TempTags = "" ;
         bttBtn_enter_Jsonclick = "" ;
         bttBtn_cancel_Jsonclick = "" ;
         bttBtn_delete_Jsonclick = "" ;
         lblTextblockalumnoid_Jsonclick = "" ;
         lblTextblockalumnonombre_Jsonclick = "" ;
         A2AlumnoNombre = "" ;
         lblTextblockalumnoapellidos_Jsonclick = "" ;
         A3AlumnoApellidos = "" ;
         lblTextblockalumnonombrecompleto_Jsonclick = "" ;
         A4AlumnoNombreCompleto = "" ;
         lblTextblockalumnonif_Jsonclick = "" ;
         A5AlumnoNIF = "" ;
         lblTextblockalumnofechanacimiento_Jsonclick = "" ;
         A6AlumnoFechaNacimiento = DateTime.MinValue ;
         lblTextblockalumnoemail_Jsonclick = "" ;
         A30AlumnoEmail = "" ;
         lblTextblockalumnoweb_Jsonclick = "" ;
         A31AlumnoWeb = "" ;
         lblTextblockalumnotelefono_Jsonclick = "" ;
         A34AlumnoTelefono = "" ;
         lblTextblockalumnonombrepadre_Jsonclick = "" ;
         A9AlumnoNombrePadre = "" ;
         lblTextblockalumnonombremadre_Jsonclick = "" ;
         A10AlumnoNombreMadre = "" ;
         lblTextblockalumnoobservaciones_Jsonclick = "" ;
         A11AlumnoObservaciones = "" ;
         Gridalumno_tutoriasContainer = new GXWebGrid( context);
         Gridalumno_tutoriasColumn = new GXWebColumn();
         A12AlumnoTutoriasFecha = DateTime.MinValue ;
         A13AlumnoTutoriasMotivo = "" ;
         A14AlumnoTutoriasDetalles = "" ;
         sMode2 = "" ;
         edtAlumnoTutoriasFecha_Internalname = "" ;
         edtAlumnoTutoriasMotivo_Internalname = "" ;
         edtAlumnoTutoriasDetalles_Internalname = "" ;
         lblTitletutorias_Jsonclick = "" ;
         imgBtn_first_Jsonclick = "" ;
         imgBtn_first_separator_Jsonclick = "" ;
         imgBtn_previous_Jsonclick = "" ;
         imgBtn_previous_separator_Jsonclick = "" ;
         imgBtn_next_Jsonclick = "" ;
         imgBtn_next_separator_Jsonclick = "" ;
         imgBtn_last_Jsonclick = "" ;
         imgBtn_last_separator_Jsonclick = "" ;
         imgBtn_select_Jsonclick = "" ;
         imgBtn_select_separator_Jsonclick = "" ;
         imgBtn_enter2_Jsonclick = "" ;
         imgBtn_enter2_separator_Jsonclick = "" ;
         imgBtn_cancel2_Jsonclick = "" ;
         imgBtn_cancel2_separator_Jsonclick = "" ;
         imgBtn_delete2_Jsonclick = "" ;
         imgBtn_delete2_separator_Jsonclick = "" ;
         Z2AlumnoNombre = "" ;
         Z3AlumnoApellidos = "" ;
         Z5AlumnoNIF = "" ;
         Z6AlumnoFechaNacimiento = DateTime.MinValue ;
         Z30AlumnoEmail = "" ;
         Z31AlumnoWeb = "" ;
         Z34AlumnoTelefono = "" ;
         Z9AlumnoNombrePadre = "" ;
         Z10AlumnoNombreMadre = "" ;
         Z11AlumnoObservaciones = "" ;
         AV12Pgmname = "" ;
         sMode1 = "" ;
         sEvt = "" ;
         EvtGridId = "" ;
         EvtRowId = "" ;
         sEvtType = "" ;
         Z12AlumnoTutoriasFecha = DateTime.MinValue ;
         Z13AlumnoTutoriasMotivo = "" ;
         Z14AlumnoTutoriasDetalles = "" ;
         GXCCtl = "" ;
         AV10TrnContext = new SdtTransactionContext(context);
         AV11WebSession = new GxWebSession( context);
         T00016_A1AlumnoId = new short[1] ;
         T00016_A2AlumnoNombre = new String[] {""} ;
         T00016_A3AlumnoApellidos = new String[] {""} ;
         T00016_A5AlumnoNIF = new String[] {""} ;
         T00016_n5AlumnoNIF = new bool[] {false} ;
         T00016_A6AlumnoFechaNacimiento = new DateTime[] {DateTime.MinValue} ;
         T00016_n6AlumnoFechaNacimiento = new bool[] {false} ;
         T00016_A30AlumnoEmail = new String[] {""} ;
         T00016_n30AlumnoEmail = new bool[] {false} ;
         T00016_A31AlumnoWeb = new String[] {""} ;
         T00016_n31AlumnoWeb = new bool[] {false} ;
         T00016_A34AlumnoTelefono = new String[] {""} ;
         T00016_A9AlumnoNombrePadre = new String[] {""} ;
         T00016_n9AlumnoNombrePadre = new bool[] {false} ;
         T00016_A10AlumnoNombreMadre = new String[] {""} ;
         T00016_n10AlumnoNombreMadre = new bool[] {false} ;
         T00016_A11AlumnoObservaciones = new String[] {""} ;
         T00016_n11AlumnoObservaciones = new bool[] {false} ;
         T00017_A1AlumnoId = new short[1] ;
         T00015_A1AlumnoId = new short[1] ;
         T00015_A2AlumnoNombre = new String[] {""} ;
         T00015_A3AlumnoApellidos = new String[] {""} ;
         T00015_A5AlumnoNIF = new String[] {""} ;
         T00015_n5AlumnoNIF = new bool[] {false} ;
         T00015_A6AlumnoFechaNacimiento = new DateTime[] {DateTime.MinValue} ;
         T00015_n6AlumnoFechaNacimiento = new bool[] {false} ;
         T00015_A30AlumnoEmail = new String[] {""} ;
         T00015_n30AlumnoEmail = new bool[] {false} ;
         T00015_A31AlumnoWeb = new String[] {""} ;
         T00015_n31AlumnoWeb = new bool[] {false} ;
         T00015_A34AlumnoTelefono = new String[] {""} ;
         T00015_A9AlumnoNombrePadre = new String[] {""} ;
         T00015_n9AlumnoNombrePadre = new bool[] {false} ;
         T00015_A10AlumnoNombreMadre = new String[] {""} ;
         T00015_n10AlumnoNombreMadre = new bool[] {false} ;
         T00015_A11AlumnoObservaciones = new String[] {""} ;
         T00015_n11AlumnoObservaciones = new bool[] {false} ;
         T00018_A1AlumnoId = new short[1] ;
         T00019_A1AlumnoId = new short[1] ;
         T000110_A1AlumnoId = new short[1] ;
         T000110_A2AlumnoNombre = new String[] {""} ;
         T000110_A3AlumnoApellidos = new String[] {""} ;
         T000110_A5AlumnoNIF = new String[] {""} ;
         T000110_n5AlumnoNIF = new bool[] {false} ;
         T000110_A6AlumnoFechaNacimiento = new DateTime[] {DateTime.MinValue} ;
         T000110_n6AlumnoFechaNacimiento = new bool[] {false} ;
         T000110_A30AlumnoEmail = new String[] {""} ;
         T000110_n30AlumnoEmail = new bool[] {false} ;
         T000110_A31AlumnoWeb = new String[] {""} ;
         T000110_n31AlumnoWeb = new bool[] {false} ;
         T000110_A34AlumnoTelefono = new String[] {""} ;
         T000110_A9AlumnoNombrePadre = new String[] {""} ;
         T000110_n9AlumnoNombrePadre = new bool[] {false} ;
         T000110_A10AlumnoNombreMadre = new String[] {""} ;
         T000110_n10AlumnoNombreMadre = new bool[] {false} ;
         T000110_A11AlumnoObservaciones = new String[] {""} ;
         T000110_n11AlumnoObservaciones = new bool[] {false} ;
         T000112_A1AlumnoId = new short[1] ;
         T000115_A25CursoId = new short[1] ;
         T000115_A1AlumnoId = new short[1] ;
         T000116_A1AlumnoId = new short[1] ;
         T000117_A1AlumnoId = new short[1] ;
         T000117_A12AlumnoTutoriasFecha = new DateTime[] {DateTime.MinValue} ;
         T000117_A13AlumnoTutoriasMotivo = new String[] {""} ;
         T000117_n13AlumnoTutoriasMotivo = new bool[] {false} ;
         T000117_A14AlumnoTutoriasDetalles = new String[] {""} ;
         T000117_n14AlumnoTutoriasDetalles = new bool[] {false} ;
         T000118_A1AlumnoId = new short[1] ;
         T000118_A12AlumnoTutoriasFecha = new DateTime[] {DateTime.MinValue} ;
         T00013_A1AlumnoId = new short[1] ;
         T00013_A12AlumnoTutoriasFecha = new DateTime[] {DateTime.MinValue} ;
         T00013_A13AlumnoTutoriasMotivo = new String[] {""} ;
         T00013_n13AlumnoTutoriasMotivo = new bool[] {false} ;
         T00013_A14AlumnoTutoriasDetalles = new String[] {""} ;
         T00013_n14AlumnoTutoriasDetalles = new bool[] {false} ;
         T00012_A1AlumnoId = new short[1] ;
         T00012_A12AlumnoTutoriasFecha = new DateTime[] {DateTime.MinValue} ;
         T00012_A13AlumnoTutoriasMotivo = new String[] {""} ;
         T00012_n13AlumnoTutoriasMotivo = new bool[] {false} ;
         T00012_A14AlumnoTutoriasDetalles = new String[] {""} ;
         T00012_n14AlumnoTutoriasDetalles = new bool[] {false} ;
         T000122_A1AlumnoId = new short[1] ;
         T000122_A12AlumnoTutoriasFecha = new DateTime[] {DateTime.MinValue} ;
         Gridalumno_tutoriasRow = new GXWebRow();
         subGridalumno_tutorias_Linesclass = "" ;
         ROClassString = "" ;
         GXt_char6 = "" ;
         GXt_char5 = "" ;
         GXt_char4 = "" ;
         GXt_char3 = "" ;
         GXt_char2 = "" ;
         GXt_char1 = "" ;
         GXt_char7 = "" ;
         sDynURL = "" ;
         FormProcess = "" ;
         GXt_char9 = "" ;
         GXt_char8 = "" ;
         GXt_char10 = "" ;
         pr_default = new DataStoreProvider(context, new GeneXus.Programs.alumno__default(),
            new Object[][] {
                new Object[] {
               T00012_A1AlumnoId, T00012_A12AlumnoTutoriasFecha, T00012_A13AlumnoTutoriasMotivo, T00012_n13AlumnoTutoriasMotivo, T00012_A14AlumnoTutoriasDetalles, T00012_n14AlumnoTutoriasDetalles
               }
               , new Object[] {
               T00013_A1AlumnoId, T00013_A12AlumnoTutoriasFecha, T00013_A13AlumnoTutoriasMotivo, T00013_n13AlumnoTutoriasMotivo, T00013_A14AlumnoTutoriasDetalles, T00013_n14AlumnoTutoriasDetalles
               }
               , new Object[] {
               T00014_A1AlumnoId, T00014_A2AlumnoNombre, T00014_A3AlumnoApellidos, T00014_A5AlumnoNIF, T00014_n5AlumnoNIF, T00014_A6AlumnoFechaNacimiento, T00014_n6AlumnoFechaNacimiento, T00014_A30AlumnoEmail, T00014_n30AlumnoEmail, T00014_A31AlumnoWeb,
               T00014_n31AlumnoWeb, T00014_A34AlumnoTelefono, T00014_A9AlumnoNombrePadre, T00014_n9AlumnoNombrePadre, T00014_A10AlumnoNombreMadre, T00014_n10AlumnoNombreMadre, T00014_A11AlumnoObservaciones, T00014_n11AlumnoObservaciones
               }
               , new Object[] {
               T00015_A1AlumnoId, T00015_A2AlumnoNombre, T00015_A3AlumnoApellidos, T00015_A5AlumnoNIF, T00015_n5AlumnoNIF, T00015_A6AlumnoFechaNacimiento, T00015_n6AlumnoFechaNacimiento, T00015_A30AlumnoEmail, T00015_n30AlumnoEmail, T00015_A31AlumnoWeb,
               T00015_n31AlumnoWeb, T00015_A34AlumnoTelefono, T00015_A9AlumnoNombrePadre, T00015_n9AlumnoNombrePadre, T00015_A10AlumnoNombreMadre, T00015_n10AlumnoNombreMadre, T00015_A11AlumnoObservaciones, T00015_n11AlumnoObservaciones
               }
               , new Object[] {
               T00016_A1AlumnoId, T00016_A2AlumnoNombre, T00016_A3AlumnoApellidos, T00016_A5AlumnoNIF, T00016_n5AlumnoNIF, T00016_A6AlumnoFechaNacimiento, T00016_n6AlumnoFechaNacimiento, T00016_A30AlumnoEmail, T00016_n30AlumnoEmail, T00016_A31AlumnoWeb,
               T00016_n31AlumnoWeb, T00016_A34AlumnoTelefono, T00016_A9AlumnoNombrePadre, T00016_n9AlumnoNombrePadre, T00016_A10AlumnoNombreMadre, T00016_n10AlumnoNombreMadre, T00016_A11AlumnoObservaciones, T00016_n11AlumnoObservaciones
               }
               , new Object[] {
               T00017_A1AlumnoId
               }
               , new Object[] {
               T00018_A1AlumnoId
               }
               , new Object[] {
               T00019_A1AlumnoId
               }
               , new Object[] {
               T000110_A1AlumnoId, T000110_A2AlumnoNombre, T000110_A3AlumnoApellidos, T000110_A5AlumnoNIF, T000110_n5AlumnoNIF, T000110_A6AlumnoFechaNacimiento, T000110_n6AlumnoFechaNacimiento, T000110_A30AlumnoEmail, T000110_n30AlumnoEmail, T000110_A31AlumnoWeb,
               T000110_n31AlumnoWeb, T000110_A34AlumnoTelefono, T000110_A9AlumnoNombrePadre, T000110_n9AlumnoNombrePadre, T000110_A10AlumnoNombreMadre, T000110_n10AlumnoNombreMadre, T000110_A11AlumnoObservaciones, T000110_n11AlumnoObservaciones
               }
               , new Object[] {
               }
               , new Object[] {
               T000112_A1AlumnoId
               }
               , new Object[] {
               }
               , new Object[] {
               }
               , new Object[] {
               T000115_A25CursoId, T000115_A1AlumnoId
               }
               , new Object[] {
               T000116_A1AlumnoId
               }
               , new Object[] {
               T000117_A1AlumnoId, T000117_A12AlumnoTutoriasFecha, T000117_A13AlumnoTutoriasMotivo, T000117_n13AlumnoTutoriasMotivo, T000117_A14AlumnoTutoriasDetalles, T000117_n14AlumnoTutoriasDetalles
               }
               , new Object[] {
               T000118_A1AlumnoId, T000118_A12AlumnoTutoriasFecha
               }
               , new Object[] {
               }
               , new Object[] {
               }
               , new Object[] {
               }
               , new Object[] {
               T000122_A1AlumnoId, T000122_A12AlumnoTutoriasFecha
               }
            }
         );
         AV12Pgmname = "Alumno" ;
      }

      private short wcpOAV7AlumnoId ;
      private short GxWebError ;
      private short nRC_Gridalumno_tutorias ;
      private short nGXsfl_100_idx=1 ;
      private short AV7AlumnoId ;
      private short IsConfirmed ;
      private short IsModified ;
      private short AnyError ;
      private short nKeyPressed ;
      private short initialized ;
      private short A1AlumnoId ;
      private short subGridalumno_tutorias_Backcolorstyle ;
      private short subGridalumno_tutorias_Collapsed ;
      private short nBlankRcdCount2 ;
      private short nRcdExists_2 ;
      private short RcdFound2 ;
      private short nIsMod_2 ;
      private short nBlankRcdUsr2 ;
      private short Z1AlumnoId ;
      private short RcdFound1 ;
      private short nRcdDeleted_2 ;
      private short GX_JID ;
      private short Gx_BScreen ;
      private short subGridalumno_tutorias_Backstyle ;
      private short gxajaxcallmode ;
      private int trnEnded ;
      private int bttBtn_enter_Visible ;
      private int bttBtn_cancel_Visible ;
      private int bttBtn_delete_Visible ;
      private int edtAlumnoId_Enabled ;
      private int edtAlumnoNombre_Enabled ;
      private int edtAlumnoApellidos_Enabled ;
      private int edtAlumnoNombreCompleto_Enabled ;
      private int edtAlumnoNIF_Enabled ;
      private int edtAlumnoFechaNacimiento_Enabled ;
      private int edtAlumnoEmail_Enabled ;
      private int edtAlumnoWeb_Enabled ;
      private int edtAlumnoTelefono_Enabled ;
      private int edtAlumnoNombrePadre_Enabled ;
      private int edtAlumnoNombreMadre_Enabled ;
      private int edtAlumnoObservaciones_Enabled ;
      private int edtAlumnoTutoriasFecha_Enabled ;
      private int edtAlumnoTutoriasMotivo_Enabled ;
      private int edtAlumnoTutoriasDetalles_Enabled ;
      private int fRowAdded ;
      private int imgBtn_first_Visible ;
      private int imgBtn_first_separator_Visible ;
      private int imgBtn_previous_Visible ;
      private int imgBtn_previous_separator_Visible ;
      private int imgBtn_next_Visible ;
      private int imgBtn_next_separator_Visible ;
      private int imgBtn_last_Visible ;
      private int imgBtn_last_separator_Visible ;
      private int imgBtn_select_Visible ;
      private int imgBtn_select_separator_Visible ;
      private int imgBtn_enter2_Visible ;
      private int imgBtn_enter2_Enabled ;
      private int imgBtn_enter2_separator_Visible ;
      private int imgBtn_cancel2_Visible ;
      private int imgBtn_cancel2_separator_Visible ;
      private int imgBtn_delete2_Visible ;
      private int imgBtn_delete2_Enabled ;
      private int imgBtn_delete2_separator_Visible ;
      private int GRIDALUMNO_TUTORIAS_nFirstRecordOnPage ;
      private int subGridalumno_tutorias_Backcolor ;
      private int subGridalumno_tutorias_Allbackcolor ;
      private int defedtAlumnoTutoriasFecha_Enabled ;
      private int idxLst ;
      private String sPrefix ;
      private String wcpOGx_mode ;
      private String scmdbuf ;
      private String gxfirstwebparm ;
      private String gxfirstwebparm_bkp ;
      private String sGXsfl_100_idx="0001" ;
      private String Gx_mode ;
      private String PreviousTooltip ;
      private String PreviousCaption ;
      private String GX_FocusControl ;
      private String edtAlumnoNombre_Internalname ;
      private String sStyleString ;
      private String tblTablemain_Internalname ;
      private String ClassString ;
      private String StyleString ;
      private String grpGroupdata_Internalname ;
      private String tblTable1_Internalname ;
      private String TempTags ;
      private String bttBtn_enter_Internalname ;
      private String bttBtn_enter_Jsonclick ;
      private String bttBtn_cancel_Internalname ;
      private String bttBtn_cancel_Jsonclick ;
      private String bttBtn_delete_Internalname ;
      private String bttBtn_delete_Jsonclick ;
      private String tblTable2_Internalname ;
      private String lblTextblockalumnoid_Internalname ;
      private String lblTextblockalumnoid_Jsonclick ;
      private String edtAlumnoId_Internalname ;
      private String edtAlumnoId_Jsonclick ;
      private String lblTextblockalumnonombre_Internalname ;
      private String lblTextblockalumnonombre_Jsonclick ;
      private String edtAlumnoNombre_Jsonclick ;
      private String lblTextblockalumnoapellidos_Internalname ;
      private String lblTextblockalumnoapellidos_Jsonclick ;
      private String edtAlumnoApellidos_Internalname ;
      private String edtAlumnoApellidos_Jsonclick ;
      private String lblTextblockalumnonombrecompleto_Internalname ;
      private String lblTextblockalumnonombrecompleto_Jsonclick ;
      private String edtAlumnoNombreCompleto_Internalname ;
      private String lblTextblockalumnonif_Internalname ;
      private String lblTextblockalumnonif_Jsonclick ;
      private String edtAlumnoNIF_Internalname ;
      private String edtAlumnoNIF_Jsonclick ;
      private String lblTextblockalumnofechanacimiento_Internalname ;
      private String lblTextblockalumnofechanacimiento_Jsonclick ;
      private String edtAlumnoFechaNacimiento_Internalname ;
      private String edtAlumnoFechaNacimiento_Jsonclick ;
      private String lblTextblockalumnoemail_Internalname ;
      private String lblTextblockalumnoemail_Jsonclick ;
      private String edtAlumnoEmail_Internalname ;
      private String edtAlumnoEmail_Jsonclick ;
      private String lblTextblockalumnoweb_Internalname ;
      private String lblTextblockalumnoweb_Jsonclick ;
      private String edtAlumnoWeb_Internalname ;
      private String edtAlumnoWeb_Jsonclick ;
      private String lblTextblockalumnotelefono_Internalname ;
      private String lblTextblockalumnotelefono_Jsonclick ;
      private String edtAlumnoTelefono_Internalname ;
      private String edtAlumnoTelefono_Jsonclick ;
      private String lblTextblockalumnonombrepadre_Internalname ;
      private String lblTextblockalumnonombrepadre_Jsonclick ;
      private String edtAlumnoNombrePadre_Internalname ;
      private String lblTextblockalumnonombremadre_Internalname ;
      private String lblTextblockalumnonombremadre_Jsonclick ;
      private String edtAlumnoNombreMadre_Internalname ;
      private String lblTextblockalumnoobservaciones_Internalname ;
      private String lblTextblockalumnoobservaciones_Jsonclick ;
      private String edtAlumnoObservaciones_Internalname ;
      private String sMode2 ;
      private String edtAlumnoTutoriasFecha_Internalname ;
      private String edtAlumnoTutoriasMotivo_Internalname ;
      private String edtAlumnoTutoriasDetalles_Internalname ;
      private String tblTable3_Internalname ;
      private String lblTitletutorias_Internalname ;
      private String lblTitletutorias_Jsonclick ;
      private String tblTabletoolbar_Internalname ;
      private String imgBtn_first_Internalname ;
      private String imgBtn_first_Jsonclick ;
      private String imgBtn_first_separator_Internalname ;
      private String imgBtn_first_separator_Jsonclick ;
      private String imgBtn_previous_Internalname ;
      private String imgBtn_previous_Jsonclick ;
      private String imgBtn_previous_separator_Internalname ;
      private String imgBtn_previous_separator_Jsonclick ;
      private String imgBtn_next_Internalname ;
      private String imgBtn_next_Jsonclick ;
      private String imgBtn_next_separator_Internalname ;
      private String imgBtn_next_separator_Jsonclick ;
      private String imgBtn_last_Internalname ;
      private String imgBtn_last_Jsonclick ;
      private String imgBtn_last_separator_Internalname ;
      private String imgBtn_last_separator_Jsonclick ;
      private String imgBtn_select_Internalname ;
      private String imgBtn_select_Jsonclick ;
      private String imgBtn_select_separator_Internalname ;
      private String imgBtn_select_separator_Jsonclick ;
      private String imgBtn_enter2_Internalname ;
      private String imgBtn_enter2_Jsonclick ;
      private String imgBtn_enter2_separator_Internalname ;
      private String imgBtn_enter2_separator_Jsonclick ;
      private String imgBtn_cancel2_Internalname ;
      private String imgBtn_cancel2_Jsonclick ;
      private String imgBtn_cancel2_separator_Internalname ;
      private String imgBtn_cancel2_separator_Jsonclick ;
      private String imgBtn_delete2_Internalname ;
      private String imgBtn_delete2_Jsonclick ;
      private String imgBtn_delete2_separator_Internalname ;
      private String imgBtn_delete2_separator_Jsonclick ;
      private String AV12Pgmname ;
      private String sMode1 ;
      private String sEvt ;
      private String EvtGridId ;
      private String EvtRowId ;
      private String sEvtType ;
      private String GXCCtl ;
      private String subGridalumno_tutorias_Class ;
      private String subGridalumno_tutorias_Linesclass ;
      private String ROClassString ;
      private String edtAlumnoTutoriasFecha_Jsonclick ;
      private String edtAlumnoTutoriasMotivo_Jsonclick ;
      private String edtAlumnoTutoriasDetalles_Jsonclick ;
      private String GXt_char6 ;
      private String GXt_char5 ;
      private String GXt_char4 ;
      private String GXt_char3 ;
      private String GXt_char2 ;
      private String GXt_char1 ;
      private String GXt_char7 ;
      private String sDynURL ;
      private String FormProcess ;
      private String GXt_char9 ;
      private String GXt_char8 ;
      private String subGridalumno_tutorias_Internalname ;
      private String GXt_char10 ;
      private DateTime A6AlumnoFechaNacimiento ;
      private DateTime A12AlumnoTutoriasFecha ;
      private DateTime Z6AlumnoFechaNacimiento ;
      private DateTime Z12AlumnoTutoriasFecha ;
      private bool entryPointCalled ;
      private bool wbErr ;
      private bool n5AlumnoNIF ;
      private bool n6AlumnoFechaNacimiento ;
      private bool n30AlumnoEmail ;
      private bool n31AlumnoWeb ;
      private bool n9AlumnoNombrePadre ;
      private bool n10AlumnoNombreMadre ;
      private bool n11AlumnoObservaciones ;
      private bool n13AlumnoTutoriasMotivo ;
      private bool n14AlumnoTutoriasDetalles ;
      private bool AV9IsAuthorized ;
      private bool returnInSub ;
      private bool Gx_longc ;
      private String A2AlumnoNombre ;
      private String A3AlumnoApellidos ;
      private String A4AlumnoNombreCompleto ;
      private String A5AlumnoNIF ;
      private String A30AlumnoEmail ;
      private String A31AlumnoWeb ;
      private String A34AlumnoTelefono ;
      private String A9AlumnoNombrePadre ;
      private String A10AlumnoNombreMadre ;
      private String A11AlumnoObservaciones ;
      private String A13AlumnoTutoriasMotivo ;
      private String A14AlumnoTutoriasDetalles ;
      private String Z2AlumnoNombre ;
      private String Z3AlumnoApellidos ;
      private String Z5AlumnoNIF ;
      private String Z30AlumnoEmail ;
      private String Z31AlumnoWeb ;
      private String Z34AlumnoTelefono ;
      private String Z9AlumnoNombrePadre ;
      private String Z10AlumnoNombreMadre ;
      private String Z11AlumnoObservaciones ;
      private String Z13AlumnoTutoriasMotivo ;
      private String Z14AlumnoTutoriasDetalles ;
      private GxWebSession AV11WebSession ;
      private GXMasterPage MasterPageObj ;
      private GXWebGrid Gridalumno_tutoriasContainer ;
      private GXWebRow Gridalumno_tutoriasRow ;
      private GXWebColumn Gridalumno_tutoriasColumn ;
      private IGxDataStore dsDefault ;
      private IDataStoreProvider pr_default ;
      private short[] T00016_A1AlumnoId ;
      private String[] T00016_A2AlumnoNombre ;
      private String[] T00016_A3AlumnoApellidos ;
      private String[] T00016_A5AlumnoNIF ;
      private bool[] T00016_n5AlumnoNIF ;
      private DateTime[] T00016_A6AlumnoFechaNacimiento ;
      private bool[] T00016_n6AlumnoFechaNacimiento ;
      private String[] T00016_A30AlumnoEmail ;
      private bool[] T00016_n30AlumnoEmail ;
      private String[] T00016_A31AlumnoWeb ;
      private bool[] T00016_n31AlumnoWeb ;
      private String[] T00016_A34AlumnoTelefono ;
      private String[] T00016_A9AlumnoNombrePadre ;
      private bool[] T00016_n9AlumnoNombrePadre ;
      private String[] T00016_A10AlumnoNombreMadre ;
      private bool[] T00016_n10AlumnoNombreMadre ;
      private String[] T00016_A11AlumnoObservaciones ;
      private bool[] T00016_n11AlumnoObservaciones ;
      private short[] T00017_A1AlumnoId ;
      private short[] T00015_A1AlumnoId ;
      private String[] T00015_A2AlumnoNombre ;
      private String[] T00015_A3AlumnoApellidos ;
      private String[] T00015_A5AlumnoNIF ;
      private bool[] T00015_n5AlumnoNIF ;
      private DateTime[] T00015_A6AlumnoFechaNacimiento ;
      private bool[] T00015_n6AlumnoFechaNacimiento ;
      private String[] T00015_A30AlumnoEmail ;
      private bool[] T00015_n30AlumnoEmail ;
      private String[] T00015_A31AlumnoWeb ;
      private bool[] T00015_n31AlumnoWeb ;
      private String[] T00015_A34AlumnoTelefono ;
      private String[] T00015_A9AlumnoNombrePadre ;
      private bool[] T00015_n9AlumnoNombrePadre ;
      private String[] T00015_A10AlumnoNombreMadre ;
      private bool[] T00015_n10AlumnoNombreMadre ;
      private String[] T00015_A11AlumnoObservaciones ;
      private bool[] T00015_n11AlumnoObservaciones ;
      private short[] T00018_A1AlumnoId ;
      private short[] T00019_A1AlumnoId ;
      private short[] T000110_A1AlumnoId ;
      private String[] T000110_A2AlumnoNombre ;
      private String[] T000110_A3AlumnoApellidos ;
      private String[] T000110_A5AlumnoNIF ;
      private bool[] T000110_n5AlumnoNIF ;
      private DateTime[] T000110_A6AlumnoFechaNacimiento ;
      private bool[] T000110_n6AlumnoFechaNacimiento ;
      private String[] T000110_A30AlumnoEmail ;
      private bool[] T000110_n30AlumnoEmail ;
      private String[] T000110_A31AlumnoWeb ;
      private bool[] T000110_n31AlumnoWeb ;
      private String[] T000110_A34AlumnoTelefono ;
      private String[] T000110_A9AlumnoNombrePadre ;
      private bool[] T000110_n9AlumnoNombrePadre ;
      private String[] T000110_A10AlumnoNombreMadre ;
      private bool[] T000110_n10AlumnoNombreMadre ;
      private String[] T000110_A11AlumnoObservaciones ;
      private bool[] T000110_n11AlumnoObservaciones ;
      private short[] T000112_A1AlumnoId ;
      private short[] T000115_A25CursoId ;
      private short[] T000115_A1AlumnoId ;
      private short[] T000116_A1AlumnoId ;
      private short[] T000117_A1AlumnoId ;
      private DateTime[] T000117_A12AlumnoTutoriasFecha ;
      private String[] T000117_A13AlumnoTutoriasMotivo ;
      private bool[] T000117_n13AlumnoTutoriasMotivo ;
      private String[] T000117_A14AlumnoTutoriasDetalles ;
      private bool[] T000117_n14AlumnoTutoriasDetalles ;
      private short[] T000118_A1AlumnoId ;
      private DateTime[] T000118_A12AlumnoTutoriasFecha ;
      private short[] T00013_A1AlumnoId ;
      private DateTime[] T00013_A12AlumnoTutoriasFecha ;
      private String[] T00013_A13AlumnoTutoriasMotivo ;
      private bool[] T00013_n13AlumnoTutoriasMotivo ;
      private String[] T00013_A14AlumnoTutoriasDetalles ;
      private bool[] T00013_n14AlumnoTutoriasDetalles ;
      private short[] T00012_A1AlumnoId ;
      private DateTime[] T00012_A12AlumnoTutoriasFecha ;
      private String[] T00012_A13AlumnoTutoriasMotivo ;
      private bool[] T00012_n13AlumnoTutoriasMotivo ;
      private String[] T00012_A14AlumnoTutoriasDetalles ;
      private bool[] T00012_n14AlumnoTutoriasDetalles ;
      private short[] T000122_A1AlumnoId ;
      private DateTime[] T000122_A12AlumnoTutoriasFecha ;
      private short[] T00014_A1AlumnoId ;
      private String[] T00014_A2AlumnoNombre ;
      private String[] T00014_A3AlumnoApellidos ;
      private String[] T00014_A5AlumnoNIF ;
      private DateTime[] T00014_A6AlumnoFechaNacimiento ;
      private String[] T00014_A30AlumnoEmail ;
      private String[] T00014_A31AlumnoWeb ;
      private String[] T00014_A34AlumnoTelefono ;
      private String[] T00014_A9AlumnoNombrePadre ;
      private String[] T00014_A10AlumnoNombreMadre ;
      private String[] T00014_A11AlumnoObservaciones ;
      private bool[] T00014_n5AlumnoNIF ;
      private bool[] T00014_n6AlumnoFechaNacimiento ;
      private bool[] T00014_n30AlumnoEmail ;
      private bool[] T00014_n31AlumnoWeb ;
      private bool[] T00014_n9AlumnoNombrePadre ;
      private bool[] T00014_n10AlumnoNombreMadre ;
      private bool[] T00014_n11AlumnoObservaciones ;
      private GXWebForm Form ;
      private SdtTransactionContext AV10TrnContext ;
   }

   public class alumno__default : DataStoreHelperBase, IDataStoreHelper
   {
      public ICursor[] getCursors( )
      {
         cursorDefinitions();
         return new Cursor[] {
          new ForEachCursor(def[0])
         ,new ForEachCursor(def[1])
         ,new ForEachCursor(def[2])
         ,new ForEachCursor(def[3])
         ,new ForEachCursor(def[4])
         ,new ForEachCursor(def[5])
         ,new ForEachCursor(def[6])
         ,new ForEachCursor(def[7])
         ,new ForEachCursor(def[8])
         ,new UpdateCursor(def[9])
         ,new ForEachCursor(def[10])
         ,new UpdateCursor(def[11])
         ,new UpdateCursor(def[12])
         ,new ForEachCursor(def[13])
         ,new ForEachCursor(def[14])
         ,new ForEachCursor(def[15])
         ,new ForEachCursor(def[16])
         ,new UpdateCursor(def[17])
         ,new UpdateCursor(def[18])
         ,new UpdateCursor(def[19])
         ,new ForEachCursor(def[20])
       };
    }

    private static CursorDef[] def;
    private void cursorDefinitions( )
    {
       if ( def == null )
       {
          Object[] prmT00014 ;
          prmT00014 = new Object[] {
          new Object[] {"@AlumnoId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT00016 ;
          prmT00016 = new Object[] {
          new Object[] {"@AlumnoId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT00017 ;
          prmT00017 = new Object[] {
          new Object[] {"@AlumnoId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT00015 ;
          prmT00015 = new Object[] {
          new Object[] {"@AlumnoId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT00018 ;
          prmT00018 = new Object[] {
          new Object[] {"@AlumnoId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT00019 ;
          prmT00019 = new Object[] {
          new Object[] {"@AlumnoId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT000110 ;
          prmT000110 = new Object[] {
          new Object[] {"@AlumnoId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT000111 ;
          prmT000111 = new Object[] {
          new Object[] {"@AlumnoNombre",SqlDbType.VarChar,100,0} ,
          new Object[] {"@AlumnoApellidos",SqlDbType.VarChar,120,0} ,
          new Object[] {"@AlumnoNIF",SqlDbType.VarChar,9,0} ,
          new Object[] {"@AlumnoFechaNacimiento",SqlDbType.DateTime,8,0} ,
          new Object[] {"@AlumnoEmail",SqlDbType.VarChar,75,0} ,
          new Object[] {"@AlumnoWeb",SqlDbType.VarChar,50,0} ,
          new Object[] {"@AlumnoTelefono",SqlDbType.VarChar,15,0} ,
          new Object[] {"@AlumnoNombrePadre",SqlDbType.VarChar,200,0} ,
          new Object[] {"@AlumnoNombreMadre",SqlDbType.VarChar,200,0} ,
          new Object[] {"@AlumnoObservaciones",SqlDbType.VarChar,650,0}
          } ;
          Object[] prmT000112 ;
          prmT000112 = new Object[] {
          } ;
          Object[] prmT000113 ;
          prmT000113 = new Object[] {
          new Object[] {"@AlumnoNombre",SqlDbType.VarChar,100,0} ,
          new Object[] {"@AlumnoApellidos",SqlDbType.VarChar,120,0} ,
          new Object[] {"@AlumnoNIF",SqlDbType.VarChar,9,0} ,
          new Object[] {"@AlumnoFechaNacimiento",SqlDbType.DateTime,8,0} ,
          new Object[] {"@AlumnoEmail",SqlDbType.VarChar,75,0} ,
          new Object[] {"@AlumnoWeb",SqlDbType.VarChar,50,0} ,
          new Object[] {"@AlumnoTelefono",SqlDbType.VarChar,15,0} ,
          new Object[] {"@AlumnoNombrePadre",SqlDbType.VarChar,200,0} ,
          new Object[] {"@AlumnoNombreMadre",SqlDbType.VarChar,200,0} ,
          new Object[] {"@AlumnoObservaciones",SqlDbType.VarChar,650,0} ,
          new Object[] {"@AlumnoId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT000114 ;
          prmT000114 = new Object[] {
          new Object[] {"@AlumnoId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT000115 ;
          prmT000115 = new Object[] {
          new Object[] {"@AlumnoId",SqlDbType.SmallInt,4,0}
          } ;
          Object[] prmT000116 ;
          prmT000116 = new Object[] {
          } ;
          Object[] prmT000117 ;
          prmT000117 = new Object[] {
          new Object[] {"@AlumnoId",SqlDbType.SmallInt,4,0} ,
          new Object[] {"@AlumnoTutoriasFecha",SqlDbType.DateTime,8,0}
          } ;
          Object[] prmT000118 ;
          prmT000118 = new Object[] {
          new Object[] {"@AlumnoId",SqlDbType.SmallInt,4,0} ,
          new Object[] {"@AlumnoTutoriasFecha",SqlDbType.DateTime,8,0}
          } ;
          Object[] prmT00013 ;
          prmT00013 = new Object[] {
          new Object[] {"@AlumnoId",SqlDbType.SmallInt,4,0} ,
          new Object[] {"@AlumnoTutoriasFecha",SqlDbType.DateTime,8,0}
          } ;
          Object[] prmT00012 ;
          prmT00012 = new Object[] {
          new Object[] {"@AlumnoId",SqlDbType.SmallInt,4,0} ,
          new Object[] {"@AlumnoTutoriasFecha",SqlDbType.DateTime,8,0}
          } ;
          Object[] prmT000119 ;
          prmT000119 = new Object[] {
          new Object[] {"@AlumnoId",SqlDbType.SmallInt,4,0} ,
          new Object[] {"@AlumnoTutoriasFecha",SqlDbType.DateTime,8,0} ,
          new Object[] {"@AlumnoTutoriasMotivo",SqlDbType.VarChar,100,0} ,
          new Object[] {"@AlumnoTutoriasDetalles",SqlDbType.VarChar,650,0}
          } ;
          Object[] prmT000120 ;
          prmT000120 = new Object[] {
          new Object[] {"@AlumnoTutoriasMotivo",SqlDbType.VarChar,100,0} ,
          new Object[] {"@AlumnoTutoriasDetalles",SqlDbType.VarChar,650,0} ,
          new Object[] {"@AlumnoId",SqlDbType.SmallInt,4,0} ,
          new Object[] {"@AlumnoTutoriasFecha",SqlDbType.DateTime,8,0}
          } ;
          Object[] prmT000121 ;
          prmT000121 = new Object[] {
          new Object[] {"@AlumnoId",SqlDbType.SmallInt,4,0} ,
          new Object[] {"@AlumnoTutoriasFecha",SqlDbType.DateTime,8,0}
          } ;
          Object[] prmT000122 ;
          prmT000122 = new Object[] {
          new Object[] {"@AlumnoId",SqlDbType.SmallInt,4,0}
          } ;
          def= new CursorDef[] {
              new CursorDef("T00012", "SELECT [AlumnoId], [AlumnoTutoriasFecha], [AlumnoTutoriasMotivo], [AlumnoTutoriasDetalles] FROM [AlumnoTutorias] WITH (UPDLOCK) WHERE [AlumnoId] = @AlumnoId AND [AlumnoTutoriasFecha] = @AlumnoTutoriasFecha ",true, GxErrorMask.GX_NOMASK, false, this,prmT00012,1,0,true,false )
             ,new CursorDef("T00013", "SELECT [AlumnoId], [AlumnoTutoriasFecha], [AlumnoTutoriasMotivo], [AlumnoTutoriasDetalles] FROM [AlumnoTutorias] WITH (NOLOCK) WHERE [AlumnoId] = @AlumnoId AND [AlumnoTutoriasFecha] = @AlumnoTutoriasFecha ",true, GxErrorMask.GX_NOMASK, false, this,prmT00013,1,0,true,false )
             ,new CursorDef("T00014", "SELECT [AlumnoId], [AlumnoNombre], [AlumnoApellidos], [AlumnoNIF], [AlumnoFechaNacimiento], [AlumnoEmail], [AlumnoWeb], [AlumnoTelefono], [AlumnoNombrePadre], [AlumnoNombreMadre], [AlumnoObservaciones] FROM [Alumno] WITH (UPDLOCK) WHERE [AlumnoId] = @AlumnoId ",true, GxErrorMask.GX_NOMASK, false, this,prmT00014,1,0,true,false )
             ,new CursorDef("T00015", "SELECT [AlumnoId], [AlumnoNombre], [AlumnoApellidos], [AlumnoNIF], [AlumnoFechaNacimiento], [AlumnoEmail], [AlumnoWeb], [AlumnoTelefono], [AlumnoNombrePadre], [AlumnoNombreMadre], [AlumnoObservaciones] FROM [Alumno] WITH (NOLOCK) WHERE [AlumnoId] = @AlumnoId ",true, GxErrorMask.GX_NOMASK, false, this,prmT00015,1,0,true,false )
             ,new CursorDef("T00016", "SELECT TM1.[AlumnoId], TM1.[AlumnoNombre], TM1.[AlumnoApellidos], TM1.[AlumnoNIF], TM1.[AlumnoFechaNacimiento], TM1.[AlumnoEmail], TM1.[AlumnoWeb], TM1.[AlumnoTelefono], TM1.[AlumnoNombrePadre], TM1.[AlumnoNombreMadre], TM1.[AlumnoObservaciones] FROM [Alumno] TM1 WITH (NOLOCK) WHERE TM1.[AlumnoId] = @AlumnoId ORDER BY TM1.[AlumnoId]  OPTION (FAST 100)",true, GxErrorMask.GX_NOMASK, false, this,prmT00016,100,0,true,false )
             ,new CursorDef("T00017", "SELECT [AlumnoId] FROM [Alumno] WITH (NOLOCK) WHERE [AlumnoId] = @AlumnoId  OPTION (FAST 1)",true, GxErrorMask.GX_NOMASK, false, this,prmT00017,1,0,true,false )
             ,new CursorDef("T00018", "SELECT TOP 1 [AlumnoId] FROM [Alumno] WITH (NOLOCK) WHERE ( [AlumnoId] > @AlumnoId) ORDER BY [AlumnoId]  OPTION (FAST 1)",true, GxErrorMask.GX_NOMASK, false, this,prmT00018,1,0,true,true )
             ,new CursorDef("T00019", "SELECT TOP 1 [AlumnoId] FROM [Alumno] WITH (NOLOCK) WHERE ( [AlumnoId] < @AlumnoId) ORDER BY [AlumnoId] DESC  OPTION (FAST 1)",true, GxErrorMask.GX_NOMASK, false, this,prmT00019,1,0,true,true )
             ,new CursorDef("T000110", "SELECT [AlumnoId], [AlumnoNombre], [AlumnoApellidos], [AlumnoNIF], [AlumnoFechaNacimiento], [AlumnoEmail], [AlumnoWeb], [AlumnoTelefono], [AlumnoNombrePadre], [AlumnoNombreMadre], [AlumnoObservaciones] FROM [Alumno] WITH (UPDLOCK) WHERE [AlumnoId] = @AlumnoId ",true, GxErrorMask.GX_NOMASK, false, this,prmT000110,1,0,true,false )
             ,new CursorDef("T000111", "INSERT INTO [Alumno] ([AlumnoNombre], [AlumnoApellidos], [AlumnoNIF], [AlumnoFechaNacimiento], [AlumnoEmail], [AlumnoWeb], [AlumnoTelefono], [AlumnoNombrePadre], [AlumnoNombreMadre], [AlumnoObservaciones]) VALUES (@AlumnoNombre, @AlumnoApellidos, @AlumnoNIF, @AlumnoFechaNacimiento, @AlumnoEmail, @AlumnoWeb, @AlumnoTelefono, @AlumnoNombrePadre, @AlumnoNombreMadre, @AlumnoObservaciones)", GxErrorMask.GX_NOMASK,prmT000111)
             ,new CursorDef("T000112", "SELECT Ident_Current('[Alumno]') ",true, GxErrorMask.GX_NOMASK, false, this,prmT000112,1,0,true,false )
             ,new CursorDef("T000113", "UPDATE [Alumno] SET [AlumnoNombre]=@AlumnoNombre, [AlumnoApellidos]=@AlumnoApellidos, [AlumnoNIF]=@AlumnoNIF, [AlumnoFechaNacimiento]=@AlumnoFechaNacimiento, [AlumnoEmail]=@AlumnoEmail, [AlumnoWeb]=@AlumnoWeb, [AlumnoTelefono]=@AlumnoTelefono, [AlumnoNombrePadre]=@AlumnoNombrePadre, [AlumnoNombreMadre]=@AlumnoNombreMadre, [AlumnoObservaciones]=@AlumnoObservaciones  WHERE [AlumnoId] = @AlumnoId", GxErrorMask.GX_NOMASK,prmT000113)
             ,new CursorDef("T000114", "DELETE FROM [Alumno]  WHERE [AlumnoId] = @AlumnoId", GxErrorMask.GX_NOMASK,prmT000114)
             ,new CursorDef("T000115", "SELECT TOP 1 [CursoId], [AlumnoId] FROM [CursoAlumnos] WITH (NOLOCK) WHERE [AlumnoId] = @AlumnoId ",true, GxErrorMask.GX_NOMASK, false, this,prmT000115,1,0,true,true )
             ,new CursorDef("T000116", "SELECT [AlumnoId] FROM [Alumno] WITH (NOLOCK) ORDER BY [AlumnoId]  OPTION (FAST 100)",true, GxErrorMask.GX_NOMASK, false, this,prmT000116,100,0,true,false )
             ,new CursorDef("T000117", "SELECT [AlumnoId], [AlumnoTutoriasFecha], [AlumnoTutoriasMotivo], [AlumnoTutoriasDetalles] FROM [AlumnoTutorias] WITH (NOLOCK) WHERE [AlumnoId] = @AlumnoId and [AlumnoTutoriasFecha] = @AlumnoTutoriasFecha ORDER BY [AlumnoId], [AlumnoTutoriasFecha] ",true, GxErrorMask.GX_NOMASK, false, this,prmT000117,11,0,true,false )
             ,new CursorDef("T000118", "SELECT [AlumnoId], [AlumnoTutoriasFecha] FROM [AlumnoTutorias] WITH (NOLOCK) WHERE [AlumnoId] = @AlumnoId AND [AlumnoTutoriasFecha] = @AlumnoTutoriasFecha ",true, GxErrorMask.GX_NOMASK, false, this,prmT000118,1,0,true,false )
             ,new CursorDef("T000119", "INSERT INTO [AlumnoTutorias] ([AlumnoId], [AlumnoTutoriasFecha], [AlumnoTutoriasMotivo], [AlumnoTutoriasDetalles]) VALUES (@AlumnoId, @AlumnoTutoriasFecha, @AlumnoTutoriasMotivo, @AlumnoTutoriasDetalles)", GxErrorMask.GX_NOMASK,prmT000119)
             ,new CursorDef("T000120", "UPDATE [AlumnoTutorias] SET [AlumnoTutoriasMotivo]=@AlumnoTutoriasMotivo, [AlumnoTutoriasDetalles]=@AlumnoTutoriasDetalles  WHERE [AlumnoId] = @AlumnoId AND [AlumnoTutoriasFecha] = @AlumnoTutoriasFecha", GxErrorMask.GX_NOMASK,prmT000120)
             ,new CursorDef("T000121", "DELETE FROM [AlumnoTutorias]  WHERE [AlumnoId] = @AlumnoId AND [AlumnoTutoriasFecha] = @AlumnoTutoriasFecha", GxErrorMask.GX_NOMASK,prmT000121)
             ,new CursorDef("T000122", "SELECT [AlumnoId], [AlumnoTutoriasFecha] FROM [AlumnoTutorias] WITH (NOLOCK) WHERE [AlumnoId] = @AlumnoId ORDER BY [AlumnoId], [AlumnoTutoriasFecha] ",true, GxErrorMask.GX_NOMASK, false, this,prmT000122,11,0,true,false )
          };
       }
    }

    public void getResults( int cursor ,
                            IFieldGetter rslt ,
                            Object[] buf )
    {
       switch ( cursor )
       {
             case 0 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                ((DateTime[]) buf[1])[0] = rslt.getGXDate(2) ;
                ((String[]) buf[2])[0] = rslt.getVarchar(3) ;
                ((bool[]) buf[3])[0] = rslt.wasNull(3);
                ((String[]) buf[4])[0] = rslt.getVarchar(4) ;
                ((bool[]) buf[5])[0] = rslt.wasNull(4);
                break;
             case 1 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                ((DateTime[]) buf[1])[0] = rslt.getGXDate(2) ;
                ((String[]) buf[2])[0] = rslt.getVarchar(3) ;
                ((bool[]) buf[3])[0] = rslt.wasNull(3);
                ((String[]) buf[4])[0] = rslt.getVarchar(4) ;
                ((bool[]) buf[5])[0] = rslt.wasNull(4);
                break;
             case 2 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                ((String[]) buf[1])[0] = rslt.getVarchar(2) ;
                ((String[]) buf[2])[0] = rslt.getVarchar(3) ;
                ((String[]) buf[3])[0] = rslt.getVarchar(4) ;
                ((bool[]) buf[4])[0] = rslt.wasNull(4);
                ((DateTime[]) buf[5])[0] = rslt.getGXDate(5) ;
                ((bool[]) buf[6])[0] = rslt.wasNull(5);
                ((String[]) buf[7])[0] = rslt.getVarchar(6) ;
                ((bool[]) buf[8])[0] = rslt.wasNull(6);
                ((String[]) buf[9])[0] = rslt.getVarchar(7) ;
                ((bool[]) buf[10])[0] = rslt.wasNull(7);
                ((String[]) buf[11])[0] = rslt.getVarchar(8) ;
                ((String[]) buf[12])[0] = rslt.getVarchar(9) ;
                ((bool[]) buf[13])[0] = rslt.wasNull(9);
                ((String[]) buf[14])[0] = rslt.getVarchar(10) ;
                ((bool[]) buf[15])[0] = rslt.wasNull(10);
                ((String[]) buf[16])[0] = rslt.getVarchar(11) ;
                ((bool[]) buf[17])[0] = rslt.wasNull(11);
                break;
             case 3 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                ((String[]) buf[1])[0] = rslt.getVarchar(2) ;
                ((String[]) buf[2])[0] = rslt.getVarchar(3) ;
                ((String[]) buf[3])[0] = rslt.getVarchar(4) ;
                ((bool[]) buf[4])[0] = rslt.wasNull(4);
                ((DateTime[]) buf[5])[0] = rslt.getGXDate(5) ;
                ((bool[]) buf[6])[0] = rslt.wasNull(5);
                ((String[]) buf[7])[0] = rslt.getVarchar(6) ;
                ((bool[]) buf[8])[0] = rslt.wasNull(6);
                ((String[]) buf[9])[0] = rslt.getVarchar(7) ;
                ((bool[]) buf[10])[0] = rslt.wasNull(7);
                ((String[]) buf[11])[0] = rslt.getVarchar(8) ;
                ((String[]) buf[12])[0] = rslt.getVarchar(9) ;
                ((bool[]) buf[13])[0] = rslt.wasNull(9);
                ((String[]) buf[14])[0] = rslt.getVarchar(10) ;
                ((bool[]) buf[15])[0] = rslt.wasNull(10);
                ((String[]) buf[16])[0] = rslt.getVarchar(11) ;
                ((bool[]) buf[17])[0] = rslt.wasNull(11);
                break;
             case 4 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                ((String[]) buf[1])[0] = rslt.getVarchar(2) ;
                ((String[]) buf[2])[0] = rslt.getVarchar(3) ;
                ((String[]) buf[3])[0] = rslt.getVarchar(4) ;
                ((bool[]) buf[4])[0] = rslt.wasNull(4);
                ((DateTime[]) buf[5])[0] = rslt.getGXDate(5) ;
                ((bool[]) buf[6])[0] = rslt.wasNull(5);
                ((String[]) buf[7])[0] = rslt.getVarchar(6) ;
                ((bool[]) buf[8])[0] = rslt.wasNull(6);
                ((String[]) buf[9])[0] = rslt.getVarchar(7) ;
                ((bool[]) buf[10])[0] = rslt.wasNull(7);
                ((String[]) buf[11])[0] = rslt.getVarchar(8) ;
                ((String[]) buf[12])[0] = rslt.getVarchar(9) ;
                ((bool[]) buf[13])[0] = rslt.wasNull(9);
                ((String[]) buf[14])[0] = rslt.getVarchar(10) ;
                ((bool[]) buf[15])[0] = rslt.wasNull(10);
                ((String[]) buf[16])[0] = rslt.getVarchar(11) ;
                ((bool[]) buf[17])[0] = rslt.wasNull(11);
                break;
             case 5 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                break;
             case 6 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                break;
             case 7 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                break;
             case 8 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                ((String[]) buf[1])[0] = rslt.getVarchar(2) ;
                ((String[]) buf[2])[0] = rslt.getVarchar(3) ;
                ((String[]) buf[3])[0] = rslt.getVarchar(4) ;
                ((bool[]) buf[4])[0] = rslt.wasNull(4);
                ((DateTime[]) buf[5])[0] = rslt.getGXDate(5) ;
                ((bool[]) buf[6])[0] = rslt.wasNull(5);
                ((String[]) buf[7])[0] = rslt.getVarchar(6) ;
                ((bool[]) buf[8])[0] = rslt.wasNull(6);
                ((String[]) buf[9])[0] = rslt.getVarchar(7) ;
                ((bool[]) buf[10])[0] = rslt.wasNull(7);
                ((String[]) buf[11])[0] = rslt.getVarchar(8) ;
                ((String[]) buf[12])[0] = rslt.getVarchar(9) ;
                ((bool[]) buf[13])[0] = rslt.wasNull(9);
                ((String[]) buf[14])[0] = rslt.getVarchar(10) ;
                ((bool[]) buf[15])[0] = rslt.wasNull(10);
                ((String[]) buf[16])[0] = rslt.getVarchar(11) ;
                ((bool[]) buf[17])[0] = rslt.wasNull(11);
                break;
             case 10 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                break;
             case 13 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                ((short[]) buf[1])[0] = rslt.getShort(2) ;
                break;
             case 14 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                break;
             case 15 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                ((DateTime[]) buf[1])[0] = rslt.getGXDate(2) ;
                ((String[]) buf[2])[0] = rslt.getVarchar(3) ;
                ((bool[]) buf[3])[0] = rslt.wasNull(3);
                ((String[]) buf[4])[0] = rslt.getVarchar(4) ;
                ((bool[]) buf[5])[0] = rslt.wasNull(4);
                break;
             case 16 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                ((DateTime[]) buf[1])[0] = rslt.getGXDate(2) ;
                break;
             case 20 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                ((DateTime[]) buf[1])[0] = rslt.getGXDate(2) ;
                break;
       }
    }

    public void setParameters( int cursor ,
                               IFieldSetter stmt ,
                               Object[] parms )
    {
       switch ( cursor )
       {
             case 0 :
                stmt.SetParameter(1, (short)parms[0]);
                stmt.SetParameter(2, (DateTime)parms[1]);
                break;
             case 1 :
                stmt.SetParameter(1, (short)parms[0]);
                stmt.SetParameter(2, (DateTime)parms[1]);
                break;
             case 2 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
             case 3 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
             case 4 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
             case 5 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
             case 6 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
             case 7 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
             case 8 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
             case 9 :
                stmt.SetParameter(1, (String)parms[0]);
                stmt.SetParameter(2, (String)parms[1]);
                if ( (bool)parms[2] )
                {
                   stmt.setNull( 3 , SqlDbType.VarChar );
                }
                else
                {
                   stmt.SetParameter(3, (String)parms[3]);
                }
                if ( (bool)parms[4] )
                {
                   stmt.setNull( 4 , SqlDbType.DateTime );
                }
                else
                {
                   stmt.SetParameter(4, (DateTime)parms[5]);
                }
                if ( (bool)parms[6] )
                {
                   stmt.setNull( 5 , SqlDbType.VarChar );
                }
                else
                {
                   stmt.SetParameter(5, (String)parms[7]);
                }
                if ( (bool)parms[8] )
                {
                   stmt.setNull( 6 , SqlDbType.VarChar );
                }
                else
                {
                   stmt.SetParameter(6, (String)parms[9]);
                }
                stmt.SetParameter(7, (String)parms[10]);
                if ( (bool)parms[11] )
                {
                   stmt.setNull( 8 , SqlDbType.VarChar );
                }
                else
                {
                   stmt.SetParameter(8, (String)parms[12]);
                }
                if ( (bool)parms[13] )
                {
                   stmt.setNull( 9 , SqlDbType.VarChar );
                }
                else
                {
                   stmt.SetParameter(9, (String)parms[14]);
                }
                if ( (bool)parms[15] )
                {
                   stmt.setNull( 10 , SqlDbType.VarChar );
                }
                else
                {
                   stmt.SetParameter(10, (String)parms[16]);
                }
                break;
             case 11 :
                stmt.SetParameter(1, (String)parms[0]);
                stmt.SetParameter(2, (String)parms[1]);
                if ( (bool)parms[2] )
                {
                   stmt.setNull( 3 , SqlDbType.VarChar );
                }
                else
                {
                   stmt.SetParameter(3, (String)parms[3]);
                }
                if ( (bool)parms[4] )
                {
                   stmt.setNull( 4 , SqlDbType.DateTime );
                }
                else
                {
                   stmt.SetParameter(4, (DateTime)parms[5]);
                }
                if ( (bool)parms[6] )
                {
                   stmt.setNull( 5 , SqlDbType.VarChar );
                }
                else
                {
                   stmt.SetParameter(5, (String)parms[7]);
                }
                if ( (bool)parms[8] )
                {
                   stmt.setNull( 6 , SqlDbType.VarChar );
                }
                else
                {
                   stmt.SetParameter(6, (String)parms[9]);
                }
                stmt.SetParameter(7, (String)parms[10]);
                if ( (bool)parms[11] )
                {
                   stmt.setNull( 8 , SqlDbType.VarChar );
                }
                else
                {
                   stmt.SetParameter(8, (String)parms[12]);
                }
                if ( (bool)parms[13] )
                {
                   stmt.setNull( 9 , SqlDbType.VarChar );
                }
                else
                {
                   stmt.SetParameter(9, (String)parms[14]);
                }
                if ( (bool)parms[15] )
                {
                   stmt.setNull( 10 , SqlDbType.VarChar );
                }
                else
                {
                   stmt.SetParameter(10, (String)parms[16]);
                }
                stmt.SetParameter(11, (short)parms[17]);
                break;
             case 12 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
             case 13 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
             case 15 :
                stmt.SetParameter(1, (short)parms[0]);
                stmt.SetParameter(2, (DateTime)parms[1]);
                break;
             case 16 :
                stmt.SetParameter(1, (short)parms[0]);
                stmt.SetParameter(2, (DateTime)parms[1]);
                break;
             case 17 :
                stmt.SetParameter(1, (short)parms[0]);
                stmt.SetParameter(2, (DateTime)parms[1]);
                if ( (bool)parms[2] )
                {
                   stmt.setNull( 3 , SqlDbType.VarChar );
                }
                else
                {
                   stmt.SetParameter(3, (String)parms[3]);
                }
                if ( (bool)parms[4] )
                {
                   stmt.setNull( 4 , SqlDbType.VarChar );
                }
                else
                {
                   stmt.SetParameter(4, (String)parms[5]);
                }
                break;
             case 18 :
                if ( (bool)parms[0] )
                {
                   stmt.setNull( 1 , SqlDbType.VarChar );
                }
                else
                {
                   stmt.SetParameter(1, (String)parms[1]);
                }
                if ( (bool)parms[2] )
                {
                   stmt.setNull( 2 , SqlDbType.VarChar );
                }
                else
                {
                   stmt.SetParameter(2, (String)parms[3]);
                }
                stmt.SetParameter(3, (short)parms[4]);
                stmt.SetParameter(4, (DateTime)parms[5]);
                break;
             case 19 :
                stmt.SetParameter(1, (short)parms[0]);
                stmt.SetParameter(2, (DateTime)parms[1]);
                break;
             case 20 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
       }
    }

 }

}
